Skip to content

Error on yarn add @guardian/eslint-config-typescript #387

Open
@arelra

Description

@arelra

Describe the bug

Attempting yarn add -D @guardian/eslint-config-typescript to elements-manager results in the following error:

could not find a copy of typescript to link in

The same error was also encountered by @kenoir: guardian/security-hq#755 (comment)

These links might be relevant:
yarnpkg/yarn#6285
yarnpkg/yarn#6285 (comment)

Downgrading to v2.0.0 fixes the problem.

To Reproduce

  1. Go to any repo without the dependency @guardian/eslint-config-typescript
  2. Run yarn add -D @guardian/eslint-config-typescript to add the latest version
  3. Should see the error: could not find a copy of typescript to link in

Expected behavior

The latest version should install without error

Environment (please complete the following information):

  • Platform: macOS 13.0.1
  • Node manager: fnm
  • Package manager: yarn 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions