Skip to content

Error: @typescript/lib-dom@npm:@types/web isn't supported by any available resolver #1183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mikob opened this issue Oct 20, 2021 · 2 comments

Comments

@mikob
Copy link

mikob commented Oct 20, 2021

Tried the install steps with

typescript: 4.5.0-dev.20211019

and yarn v3.0.2

➤ YN0001: │ Error: @typescript/lib-dom@npm:@types/web isn't supported by any available resolver
at Xc.getResolverByDescriptor (/home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:294:5330)
at Xc.bindDescriptor (/home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:294:4719)
at p (/home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:303:6959)
at async Promise.all (index 1)
at async Fe.resolveEverything (/home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:303:8166)
at async /home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:306:2135
at async xe.startTimerPromise (/home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:275:3730)
at async Fe.install (/home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:306:2074)
at async /home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:311:122
at async Function.start (/home/mikob/workspace/lipsurf/chrome-extension/.yarn/releases/yarn-3.0.2.cjs:275:2287)

@mikob
Copy link
Author

mikob commented Oct 20, 2021

It's a yarn issue: yarnpkg/berry#1621

@mikob mikob closed this as completed Oct 20, 2021
@mnahkies
Copy link

Whilst it's a problem with yarn, just wanted to leave a note that you can workaround by adding this to your package.json:

  "resolutions": {
    "@typescript/lib-dom": "npm:@types/web@*",
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants