question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(jsii) Remove Package Resolutions for `@types/babel__traverse`

See original GitHub issue

This change in DefinitelyTyped drops release for TS3.9 which is needed for jsii: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63359

Pinning @types/babel__traverse to 7.18.2 works for now.

Once we can, we should remove the pin.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:1
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mrgraincommented, Nov 30, 2022

Found the issue. The root NxMonorepoProject also depends on the breaking dependency. Because of the way node or TS or jsii works, it somehow attempts to use the (wrong) version from the root and not the correct version from base/cdk-projen-test/node_modules. The error message should have pointed us to that.

You’ll need to add this to the NxMonorepoProject:

project.package.addPackageResolutions("@types/babel__traverse@7.18.2");

and raise an issue with the maintainers of nx-monorepo 😕

1reaction
pchaganticommented, Nov 30, 2022

New zip attached. Thanks 😃 test_projen.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selective dependency resolutions - Yarn
Yarn supports selective version resolutions, which lets you define custom package versions or ranges inside your dependencies through the resolutions field ...
Read more >
npm equivalent of yarn resolutions? - package.json
Npm equivalent to yarn resolutions is overrides. After the RFC was accepted now there's an epic to watch the progress of implementation.
Read more >
npm-force-resolutions
This packages modifies package-lock.json to force the installation of specific version of a transitive dependency (dependency of dependency) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found