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
node_modules/__ngcc_entry_points__.json causes issues with pnpm install
#38023
Comments
Using pnpm is generally not supported, please see #32087 (comment) for details. So even if pnpm would not error because of the manifest file, it may still not work. We're not actively testing with pnpm and ngcc's model is not really compatible with the way pnpm operates. |
That is unfortunate, the scarce documentation regarding package managers suggests otherwise. Maybe you could print out a Warning/Error when The funny thing is, it seems to work fine, when I delete this json file I can install new modules if needed, and |
pnpm assumes node_modules contains only directories. I believe this assumption is correct. ngcc compiler adds ngcc_entry_points.json to node_modules directly. I believe that file should be generated under some dot-directory (like |
This should be solved by the ng-linker being developed to replace ngcc. Please follow along with the progress here: https://github.com/orgs/angular/projects/2 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 bug report
Affected Package
The issue is caused by package @angular/...."@angular/compiler": "^10.0.3"
Is this a regression?
Yes, the previous version in which this bug was not present was: Angular 8. I didn't try Angular 9.It worked before
__ngcc_entry_points__.json
was added tonode_modules
so I'd say yes.Description
Under some circumstances Angulars ngcc create a file
node_modules/__ngcc_entry_points__.json
, this file conflicts with the package managerpnpm
.🔬 Minimal Reproduction
You need to have
pnpm
installed as package manager.ng new --package-manager pnpm test-issue
node_modules/__ngcc_entry_points__.json
generated in this test project, simply put this sample__ngcc_entry_points__.json
intonode_modules
ngcc_entry_points.zip
pnpm install
🔥 Exception or Error
🌍 Your Environment
Angular Version:
There seems to be an issue with the version detection when
pnpm
is usedAnything else relevant?
no
The text was updated successfully, but these errors were encountered: