Closed hgschwibbe closed 2 years ago
Hi, I've got the same problem, with Angular 12.0.4...
Same problem... took me ages to track down the culprit!
Same here :
"@angular/animations": "^12.0.0",
"@angular/cdk": "^12.0.4",
"@angular/common": "^12.0.0",
"@angular/compiler": "^12.0.0",
"@angular/core": "^12.0.0",
"@angular/forms": "^12.0.0",
"@angular/material": "^12.0.4",
"@angular/platform-browser": "^12.0.0",
"@angular/platform-browser-dynamic": "^12.0.0",
"@angular/router": "^12.0.0",
"@swimlane/ngx-charts": "^18.0.1",
The only workaround that worked for now is :
@swimlane/ngx-charts
from package.json dependenciesnpm install
npm install @swimlane/ngx-charts
Same problem here. The only thing that worked for me was to create a ngcc.config.js
file as suggested by d-rybachuk in issue #1623. I hope they release a fix for this soon.
Same problem here, this looks critical indeed, I just installed this package, looked pretty cool, but it crash in my pipelines as npm i
will always fail... but yeah duplicate of #1623
There any updates for this? Bypassing ngcc isn't a fix.
Same issue for me too, took ages to track this down. Going back to ngx-charts 17.0.1 worked around the issue for me so it is at least possible to build clean, but 18.0.1 was a definite no-go.
+1
+1
The ngcc.confige
hack is not a fix, as those modules are part of testing. Bypassing the umd builds makes jest
unable to find the module and fails with no solution.
issue still present after upgrading to version 19.0.0
added ngcc.config.js to root folder (as mentioned earlier) to "solve" the issue, containing:
module.exports = {
packages: {
'@swimlane/ngx-charts': {
entryPoints: {
'.': { override: { main: undefined } },
},
},
},
};
Thanks @neffsvg - saved me some time testing...
This is now really annoying because we can't upgrade our Angular version until this issue is fixed. Something must have changed in the package build process to cause this. Does anyone know what specifically is missing in the npm package that causes it to break?
Cheers
Is anyone able to create a repository where this can be reproduced, please? I'm having trouble reproducing it.
@marjan-georgiev https://github.com/Hypercubed/ngcc_error/tree/main
Throws the error when running npx ngcc
Hi @marjan-georgiev,
I'm using Angular CLI: 12.0.5 Node: 14.17.5 Package Manager: npm 6.14.14 OS: win32 x64 typescript: 4.2.4 (I do not thing the versions are important - I had similar behavior with other versions)
here are the steps to reproduce the error on a minimal setup:
Thanks for looking into the error!
Fixed for me with 19.0.1 thanks
Working. Thanks!
Describe the bug After adding @angular/cdk 11.2.13 and ngx-charts to the project npm install does not work anymore.
To Reproduce Steps to reproduce the behavior:
Additional Information I found a similar bug report for another @swimlane project (@swimlane/ngx-datatable), probably both are related to each other: https://github.com/swimlane/ngx-datatable/issues/1676