-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Cannot find type definition file for 'core-js' #1186
Comments
Same here. It also happens just running
Those files have
|
same occurs for me after upgrade to rc-1 version (angular 2.1.2):
|
Same for me. My error only occurs on bail. 94% asset optimizationError in bail mode: [default] /Volumes/nyps2020-CaseSensitive/nyps2020/appl/fe.appl/admin.fe.appl/node_modules/primeng/components/autocomplete/autocomplete.d.ts:1:0 |
Same problem here. Pinning version to |
Do you have core-js type at your package.json devDependencies?
|
@cagataycivici - it won't help, tried it. |
I am facing similar issue, my package.json contains: "devDependencies": { I was getting " Duplicate identifier 'PropertyKey'. " As suggested by @philip-spark5 I moved to "primeng": "1.0.0-beta.19" and the problem was solved |
@cagataycivici yesterday everything was running fine. Not sure why (and what) something has changed here and primefaces stopped working . I know moving to beta.19 is not a solution but there is certainly something different on this beta version that fixes the duplication. |
@cagataycivici It also works well in beta.20 BTW. |
@cagataycivici angular-cli might help to replicate as i have this issue using it. |
same here, beta 20 is ok and adding "@types/core-js": "^0.9.34" do not solve the issue with RC1. |
This looks like a similar issue angular/in-memory-web-api#62 |
@FallenRiteMonk - I got it configured to |
We've upgraded to typescript 2 and it seems compiler adds;
To many d.ts files in primeng package causing this error. We're open to suggestions. Note that this is not added to all d.ts files but the ones where we use something like Function, Event, MouseEvent or similar that causes a reference to core-js. As a quick workaround, add no resolve when compiling.
|
@cagataycivici Have you tried compiling primeng with |
@cacogr - This is my exact configuration where it reproduces. |
@cacogr , good coincidence, we were trying the same thing and it worked, the generated d.ts files do not have the core-js reference anymore. We're checking and will do RC2 as this turned out to be a common issue. |
@mrgoos I mean in primeng's own tsconfig, not in an app that uses primeng. @cagataycivici nice! |
@cacogr - I see, great thanks! 👍 |
Try with 1.0.0.RC2 please. |
Changed to 1.0.0-rc.2 resolved all issues. Thanks ! |
It is working, no errors 😄 |
Works for me too! Thanks! |
Awesome, thanks for the feedback guys. |
Looks like we're having an RC (release crisis). Please try with RC3, RC2 fixes the core-js issue but published the modules as es2015, which should be commonjs. Hopefully RC3 brings back the order. |
I'm getting this error since RC-1 for autocomplete, calendar, api and dropdown. Using angular-cli beta 18 with webpack + angular 2.1.2
Tried to install @type/core-js but it brings even more errors
The text was updated successfully, but these errors were encountered: