Skip to content

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

@renchap

Description

@renchap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreproducibleThis issue can be successfully reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions