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

fix(angular): explicitly depend on find-cache-dir to avoid npm resolution conflict #18049

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Jul 10, 2023

Current Behavior

A recent version of babel-loader (a dependency of @nx/webpack which is a dependency of @nx/angular) depends on a version of find-cache-dir distributed as ESM. This causes the ng-packagr executors to throw because the @nx/angular package does not depend directly on that package and the package manager can resolve the unexpected version at the root.

This was caught by the Nigthly E2E tests: https://github.com/nrwl/nx/actions/runs/5502618546/jobs/10027062285#step:16:195

Expected Behavior

The ng-packagr executors work correctly.

Note: Doing a dynamic import in this case is not possible because the code using that package needs to be synchronous and using a dynamic import would make it async.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Jul 10, 2023
@vercel
Copy link

vercel bot commented Jul 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2023 11:41am

@nx-cloud
Copy link

nx-cloud bot commented Jul 10, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 9936552. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@leosvelperez leosvelperez marked this pull request as ready for review July 10, 2023 11:45
@leosvelperez leosvelperez requested review from FrozenPandaz, vsavkin, jaysoo and a team as code owners July 10, 2023 11:45
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants