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
Angular never searches for zone.js in the correct path #27473
Comments
Polyfills are resolved from the workspace root because they're referenced in the |
that is what I need, but the actual behavior is that it searches in the monorepo's root rather than the workspace's root. note that the Angular workspace is part of a monorepo. |
Can you setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via This might be related to your directory structure so its really important to get an accurate repro to diagnose this. |
I updated the description with the minimal repro and steps to reproduction |
Hello @its-dibo, thank you for your reproduction. It seems that this is an NX managed monorepo, so its operation differs slightly from an Angular CLI workspace due to the presence of multiple nested |
but, as you know, pnpm creates s node_module folder for each package separately (hard links) |
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I have a monorepo, one of its workspaces is an Angular workspace. and I use pnpm to install the dependencies
each workspace has its own node_modules folder.
when I start building this app (the Angular workspace), it fails to find zone.js
it should find it inside node_modules of the Angular app
this debug info may be useful
as you can see it looks in:
but never looks in the correct path which is dibo/apps/mobarmegeen/mobarmegeen-ui/node_modules/zone.js
debug info
Minimal Reproduction
https://github.com/its-dibo/issue-zonejs
1- install via pnpm
pnpm install
if pnpm is not installed, simply, run
npm I -g pnpm
2- run the app
npm start
note: don't use any other package manager, as they hoist the packages of the app to the root of the monorepo.
.
Exception or Error
No response
Your Environment
The text was updated successfully, but these errors were encountered: