-
Notifications
You must be signed in to change notification settings - Fork 12k
Error after Updating - Cannot read property 'parse' of undefined #3584
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
Comments
this error occurs because index.ts file is almost overwritten or empty.. check that! |
I tried that - It didn't fix anything |
Then try .. to remove all node_modules in ur project. then: |
I tried that as well :( |
|
Hello, I am also facing the same issue , when I upgraded angular from 2.1.0 to 2.3.1 . I did this by updating the package.json manually to the version 2.3.1 for the angular packages "@angular/common": "^2.3.1", Can you please help resolve? |
I get the same error using 2.3.1 but only if i do a aot build using the cli, which previously worked, without aot it works. |
Hi, I am also getting the same error after upgrading from Angular 2.2.x to 2.3.1. I upgraded with npm update --save angular-cli: 1.0.0-beta.22-1 |
Im getting this as well. |
I temporarily fixed this by downgrading:
|
Same issue here after upgrade |
Angular 2.3.x is not supported, up to v1.0.0-beta.23 |
+1 Same issue here after upgrade |
It seems angular-cli 1.0.0-beta.22+ not supporting angular 2.3+; I think this issue will be fixed in next updates, so until that time, in package.json, reset all angular dependencies to be as the following then, |
I'm having the problem also, and it's not 2.20. I reset my @angular as suggested, and that didn't solve it. Must be something else!
|
Last Angular release 2.4.1 and Angular-cli 1.0.0-beta.24 it work fine. Ps. 4.00 is coming.... |
When I try Angular 2.4.1 and ng-cli 1.0.0-beta.24 I get a new error:
|
@redaikidoka see here #3566 to solve your problem. |
Fixed in latest beta. |
results:
|
Samething here, however I am using
When I run
|
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. |
OS?
10
Versions.
angular-cli: 1.0.0-beta.22-1
node: 6.2.1
os: win32 x64
Repro steps.
Created with Angular CLI. I recently updated the angular version and angular-cli version
The log given by the failure.
`ng serve
can't resolve module @angular/core/src/di/opaque_token from C:\Users\Luca\dev\taboozy\src\index.ts
Cannot read property 'parse' of undefined
TypeError: Cannot read property 'parse' of undefined
at ReflectorHost.normalizeAssetUrl (C:\Users\Luca\dev\taboozy\node_modules@angular\compiler-cli\src\reflector_host.js:54:43)
at ReflectorHost.findDeclaration (C:\Users\Luca\dev\taboozy\node_modules@angular\compiler-cli\src\reflector_host.js:151:33)
at StaticReflector.initializeConversionMap (C:\Users\Luca\dev\taboozy\node_modules@angular\compiler-cli\src\static_reflector.js:145:38)
at new StaticReflector (C:\Users\Luca\dev\taboozy\node_modules@angular\compiler-cli\src\static_reflector.js:42:14)
at AotPlugin._setupOptions (C:\Users\Luca\dev\taboozy\node_modules@ngtools\webpack\src\plugin.js:137:27)
at new AotPlugin (C:\Users\Luca\dev\taboozy\node_modules@ngtools\webpack\src\plugin.js:37:14)
at Object.exports.getWebpackNonAotConfigPartial (C:\Users\Luca\dev\taboozy\node_modules\angular-cli\models\webpack-build-typescript.js:20:13)
at new NgCliWebpackConfig (C:\Users\Luca\dev\taboozy\node_modules\angular-cli\models\webpack-config.js:23:42)
at Class.exports.default.Task.extend.run (C:\Users\Luca\dev\taboozy\node_modules\angular-cli\tasks\serve-webpack.js:20:22)
at C:\Users\Luca\dev\taboozy\node_modules\angular-cli\commands\serve.js:102:26
at process._tickCallback (internal/process/next_tick.js:103:7)`
Mention any other details that might be useful.
I upgraded from version 1.0.0-beta.19 and upgrade angular version from 2.1.1 to 2.3
The text was updated successfully, but these errors were encountered: