-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
3.0.0-beta.3 - Can't resolve 'core-js/es7/reflect' #412
Comments
Yes, in |
Find the polyfills.ts in src folder and comment the line "import 'core-js/es7/reflect'" as it is not required if using AOT |
I have the Angular 7 CLI working fine with core-js 3. Work around the incompatibility by adding this to your {
"compilerOptions": {
"paths": {
"core-js/es7/reflect": [
"node_modules/core-js/proposals/reflect-metadata"
]
}
}
} This works by making the TypeScript compiler resolve |
I had the same issue as @dvdmunckh but additionally I was receiving multiple |
I've roll backed the version of to "core-js": "2.6.5" from"core-js": "3.0.0" and its started working. Below is my package.json. "dependencies": { |
Or just change it to latest
|
EDIT:
|
@dvdmunckhof thanks. worked for me. |
edit: I'm quite dumb actually, you juste have to import core-js/es/array haha nb : note that with angular 8 you no longer need to import reflect as it is bundled by default in angular cli I had an error : Resolved by adding : resulting in addition with all of the fixes :
|
Question and Solution zloirock/core-js#412 (comment)
Not working for me.
|
Not working for me, my package.json "dependencies": { my tsconfig |
@Arystosedes, this workaround is not needed when using Angular 8, as Angular 8 uses core-js 3 out of the box. |
I'm using
@angular/cli
I upgraded to the3.0.0-beta.3
and I'm getting an import error on this import:import 'core-js/es7/reflect';
The text was updated successfully, but these errors were encountered: