Skip to content
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

[Bug?]: Error: @typescript/lib-dom@npm:@types/web isn't supported by any available resolver #4334

Closed
1 task
renchap opened this issue Apr 7, 2022 · 4 comments
Labels
bug Something isn't working reproducible This issue can be successfully reproduced

Comments

@renchap
Copy link

renchap commented Apr 7, 2022

Self-service

  • I'd be willing to implement a fix

Describe the bug

Upgrading some packages triggers Error: @typescript/lib-dom@npm:@types/web isn't supported by any available resolver error.

This happens when I either upgrade all my indirect deps (yarn up -R '**'), or specifically the @react-google-maps/api package from 2.7.0 to latest 2.8.1.

To reproduce

await packageJson({
  dependencies: {
    ["@react-google-maps/api"]: "^2.7.0",
    [`typescript`]: `^4.6.3`
  }
});

await expect(yarn(`install`)).resolves.not.toThrow(`Command failed`);

Environment

yarn dlx -q envinfo --preset jest

  System:
    OS: macOS 12.3.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 16.14.0 - /private/var/folders/cn/qgvjcjx97mj8rc2vx37vgkvh0000gn/T/xfs-efa8fce2/node
    Yarn: 3.2.0 - /private/var/folders/cn/qgvjcjx97mj8rc2vx37vgkvh0000gn/T/xfs-efa8fce2/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
@renchap renchap added the bug Something isn't working label Apr 7, 2022
@yarnbot

This comment has been minimized.

@yarnbot yarnbot added the reproducible This issue can be successfully reproduced label Apr 7, 2022
@yarnbot

This comment has been minimized.

@yarnbot
Copy link
Collaborator

yarnbot commented Apr 7, 2022

This issue reproduces on master:

Error: expect(received).resolves.not.toThrow()

Received promise rejected instead of resolved
Rejected to value: [Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js install

➤ YN0000: ┌ Resolution step
::group::Resolution step
➤ YN0001: │ Error: @typescript/lib-dom@npm:@types/web isn't supported by any available resolver
    at MultiResolver.getResolverByDescriptor (/github/workspace/packages/yarnpkg-core/sources/MultiResolver.ts:73:13)
    at MultiResolver.bindDescriptor (/github/workspace/packages/yarnpkg-core/sources/MultiResolver.ts:31:27)
    at Project.preparePackage (/github/workspace/packages/yarnpkg-core/sources/Project.ts:683:30)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at startPackageResolution (/github/workspace/packages/yarnpkg-core/sources/Project.ts:769:21)
::endgroup::
➤ YN0000: └ Completed in 1s 888ms
➤ YN0000: Failed with errors in 1s 893ms
]
    at expect (/github/workspace/.yarn/cache/expect-npm-24.8.0-8c7640c562-44ff9ab1e7.zip/node_modules/expect/build/index.js:138:15)
    at module.exports (evalmachine.<anonymous>:9:7)
    at async /github/workspace/.yarn/cache/@arcanis-sherlock-npm-2.0.3-558f52b79f-286d94b96d.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:57:13
    at async executeInTempDirectory (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-2.0.3-558f52b79f-286d94b96d.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:18:16)
    at async executeRepro (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-2.0.3-558f52b79f-286d94b96d.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:25:12)
    at async ExecCommand.execute (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-2.0.3-558f52b79f-286d94b96d.zip/node_modules/@arcanis/sherlock/lib/commands/exec.js:26:38)
    at async ExecCommand.validateAndExecute (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-4061026d74.zip/node_modules/clipanion/lib/advanced/Command.js:161:26)
    at async Cli.run (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-4061026d74.zip/node_modules/clipanion/lib/advanced/Cli.js:74:24)
    at async Cli.runExit (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-4061026d74.zip/node_modules/clipanion/lib/advanced/Cli.js:83:28)

@merceyz
Copy link
Member

merceyz commented Apr 7, 2022

Duplicate of #1816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reproducible This issue can be successfully reproduced
Projects
None yet
Development

No branches or pull requests

3 participants