-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
ngcc should not crash when scanning a package with "typings" field set to an array value #33646
Comments
Just realised I should've created this in angular-cli repo. Do I need to close and open a new one there? |
@dexster actually this is the correct repo, it's caused by ngcc which is maintained here :) |
I have the same issue |
In a package.json file, the "typings" or "types" field could be an array of typings files. ngcc would previously crash unexpectedly for such packages, as it assumed that the typings field would be a string. This commit lets ngcc skip over such packages, as having multiple typing entry-points is not supported for Angular packages so it is safe to ignore them. Fixes angular#33646
…33973) In a package.json file, the "typings" or "types" field could be an array of typings files. ngcc would previously crash unexpectedly for such packages, as it assumed that the typings field would be a string. This commit lets ngcc skip over such packages, as having multiple typing entry-points is not supported for Angular packages so it is safe to ignore them. Fixes #33646 PR Close #33973
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/compiler-cli
Is this a regression?
Probably not
Description
ng update fails in postinstall running this command:
ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points"
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
I have an npm package, csv-parse, which has this array in the types section
This line in entry_point.js expects a string
var metadataPath = file_system_1.resolve(entryPointPath, typings.replace(/\.d\.ts$/, '') + '.metadata.json');
The text was updated successfully, but these errors were encountered: