I'm trying to upgrade the sails-angular2-start to the latest 4.0.1 version of Angular and get the above error in the browser.
Any ideas why this might be?
package.json dependencies below:
"dependencies": {
"ejs": "2.5.6",
"grunt": "1.0.1",
"grunt-contrib-clean": "1.0.0",
"grunt-contrib-coffee": "1.0.0",
"grunt-contrib-concat": "1.0.1",
"grunt-contrib-copy": "1.0.0",
"grunt-contrib-cssmin": "2.0.0",
"grunt-contrib-jst": "1.0.0",
"grunt-contrib-less": "1.4.1",
"grunt-contrib-uglify": "2.1.0",
"grunt-contrib-watch": "1.0.0",
"grunt-sails-linker": "~1.0.4",
"grunt-sync": "0.6.2",
"include-all": "~4.0.0",
"rc": "1.2.0",
"sails": "~0.12.4",
"sails-disk": "~0.10.9",
"rxjs": "5.2.0",
"@angular/common": "4.0.1",
"@angular/compiler": "4.0.1",
"@angular/core": "4.0.1",
"@angular/forms": "4.0.1",
"@angular/http": "4.0.1",
"@angular/platform-browser": "4.0.1",
"@angular/platform-browser-dynamic": "4.0.1",
"@angular/router": "4.0.1",
"@angular/upgrade": "4.0.1",
"systemjs": "^0.20.1",
"es6-promise": "^4.0.5",
"es6-shim": "^0.35.1",
"reflect-metadata": "0.1.9",
"zone.js": "^0.8.5",
"sails-hook-typescript": "^1.0.0"
},
The reason I'm doing this, is because if I just git clone and and npm install I get a whole load of warnings:
npm WARN @angular/platform-browser-dynamic@2.2.3 requires a peer of @angular/compiler@2.2.3 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/platform-browser-dynamic@2.2.3 requires a peer of @angular/platform-browser@2.2.3 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/http@2.2.4 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/http@2.2.4 requires a peer of @angular/core@2.2.4 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/http@2.2.4 requires a peer of @angular/platform-browser@2.2.4 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/platform-browser@2.4.9 requires a peer of @angular/core@2.4.9 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/platform-browser@2.4.9 requires a peer of @angular/common@2.4.9 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/upgrade@4.0.0 requires a peer of @angular/core@4.0.0 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/upgrade@4.0.0 requires a peer of @angular/compiler@4.0.0 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/upgrade@4.0.0 requires a peer of @angular/platform-browser@4.0.0 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/upgrade@4.0.0 requires a peer of @angular/platform-browser-dynamic@4.0.0 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/router@4.0.0 requires a peer of @angular/core@4.0.0 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/router@4.0.0 requires a peer of @angular/common@4.0.0 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/router@4.0.0 requires a peer of @angular/platform-browser@4.0.0 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/core@2.2.3 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/core@2.2.3 requires a peer of zone.js@^0.6.21 but none was installed.
npm verb
npm verb If you need help, you may report this error at:
npm verb <https://github.com/npm/npm/issues>
npm WARN @angular/compiler@4.0.0-rc.1 requires a peer of @angular/core@4.0.0-rc.1 but none was installed.
followed by an error in the browser
zone.js:365 Error: _angular_core.Version is not a constructor
I'm trying to upgrade the sails-angular2-start to the latest 4.0.1 version of Angular and get the above error in the browser.
Any ideas why this might be?
package.json dependencies below:
The reason I'm doing this, is because if I just git clone and and npm install I get a whole load of warnings:
followed by an error in the browser