After I upgraded and made sure I am on latest CLI beta, when I type Ionic serve, this is the error:
Runtime Error
Cannot find module "../../node_modules/@angular/core/src/metadata/di"
Stack
Error: Cannot find module "../../node_modules/@angular/core/src/metadata/di"
at g (http://localhost:8100/build/polyfills.js:3:7133)
at Object.<anonymous> (http://localhost:8100/build/main.js:137034:7)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.<anonymous> (http://localhost:8100/build/main.js:110498:73)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.<anonymous> (http://localhost:8100/build/main.js:180951:70)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.defineProperty.value (http://localhost:8100/build/main.js:66:18)
at http://localhost:8100/build/main.js:69:10
Ionic Framework: 3.0.1
Ionic Native: 2.4.1
Ionic App Scripts: 1.3.0
Angular Core: 4.0.0
Angular Compiler CLI: 4.0.0
Node: 7.5.0
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Try it with the latest stable CLI 2.2.3. CLI 3 has nothing to do with Ionic 3 and is still in Beta.
Did you run npm install after updating your package.json? It looks like your Angular packages are still on 2.x
npm WARN angularfire2@2.0.0-beta.8 requires a peer of @angular/common@^2.0.0 but none was installed.
npm WARN angularfire2@2.0.0-beta.8 requires a peer of @angular/compiler@^2.0.0 but none was installed.
npm WARN angularfire2@2.0.0-beta.8 requires a peer of @angular/core@^2.0.0 but none was installed.
npm WARN angularfire2@2.0.0-beta.8 requires a peer of @angular/platform-browser@^2.0.0 but none was installed.
npm WARN angularfire2@2.0.0-beta.8 requires a peer of @angular/platform-browser-dynamic@^2.0.0 but none was installed.
npm WARN angular2-jwt@0.1.28 requires a peer of @angular/core@^2.0.0 but none was installed.
npm WARN angular2-jwt@0.1.28 requires a peer of @angular/http@^2.0.0 but none was installed.
npm WARN @ionic/cli-plugin-ionic-angular@0.0.6 requires a peer of @ionic/app-scripts@^1.3.1 but none was installed.
This smells like you still havenāt gotten rid of the v3 CLI. I would get rid of all the cli-* stuff in devDependencies. I donāt use either angularfire2 or angular2-jwt, but if those are relatively recent versions they should be OK with Angular 4, and yours donāt seem to be. Perhaps clearing npmās cache might do something?
I clear my npm caches and still having the same issue. This error: Cannot find module āā¦/ā¦/node_modules/@angular/core/src/metadata/diā
I google around there is no reference of this error. I am so stuck with the 3.0.1. Do I need to anything else beside follow the official changelogā¦ Do I need to somehow install global Angualr2 update or something crazy?
Awwwwā¦ I remove the ionic-native and replace everything to use the brand new ionic native. Then the same error is there: This error: Cannot find module āā¦/ā¦/node_modules/@angular/core/src/metadata/diā
I use webstorm and they have auto imported classes. I will def try that to see if I can fix the issue. OMG, I have not sleep since last night banging my head on my computer all night to try to find out solution lol.
@ajhowaboutsales YES YES YES. You are a life saver!! Here is WebStorm evil import: import {ViewChild} from āā¦/ā¦/node_modules/@angular/core/src/metadata/diā After I get rid of it. The error go awayā¦ But now more issues tho for 3.0ā¦
Now ion-slider being crazy and throw massive error:
polyfills.js:3 Unhandled Promise rejection: Template parse errors:
Canāt bind to āoptionsā since it isnāt a known property of āion-slidesā.
If āion-slidesā is an Angular component and it has āoptionsā input, then verify that it is part of this module.
If āion-slidesā is a Web Component then add āCUSTOM_ELEMENTS_SCHEMAā to the ā@NgModule.schemasā of this component to suppress this message.
To allow any property add āNO_ERRORS_SCHEMAā to the ā@NgModule.schemasā of this component. ("
Hello I find the same solution,
after using the framwork, I find this
Error: Uncaught (in promise): Error: Cannot find module "@angular/core/src/metadata/di"
Error: Cannot find module "@angular/core/src/metadata/di"
at Object.277 (http://localhost:8100/build/4.js:48:7)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at Object.271 (http://localhost:8100/build/4.js:11:64)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at http://localhost:8100/build/main.js:54:10
at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
at Object.onInvoke (http://localhost:8100/build/vendor.js:4979:33)
at t.invoke (http://localhost:8100/build/polyfills.js:3:14916)
at r.run (http://localhost:8100/build/polyfills.js:3:10143)
at http://localhost:8100/build/polyfills.js:3:20242
at c (http://localhost:8100/build/polyfills.js:3:19752)
at Object.reject (http://localhost:8100/build/polyfills.js:3:19174)
at NavControllerBase._fireError (http://localhost:8100/build/vendor.js:48008:16)
at NavControllerBase._failed (http://localhost:8100/build/vendor.js:48001:14)
at http://localhost:8100/build/vendor.js:48048:59
at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
at Object.onInvoke (http://localhost:8100/build/vendor.js:4979:33)
at t.invoke (http://localhost:8100/build/polyfills.js:3:14916)
at r.run (http://localhost:8100/build/polyfills.js:3:10143)
at http://localhost:8100/build/polyfills.js:3:20242
Ionic Framework: 3.9.2
Ionic App Scripts: 3.1.0
Angular Core: 5.0.0
Angular Compiler CLI: 5.0.0
Node: 6.5.0