Closed boskiv closed 7 years ago
Hello,
You need angular-cli bêta 21 I'm having the same issue with 22
It's also seems fixed with beta 24, so we should probably try to upgrade https://github.com/angular/angular-cli#updating-angular-cli
I have upgraded to beta24. Remove node_modules and run npm i
npm run start
diff --git a/package.json b/package.json
index d7e51ed..a02ab4f 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,7 @@
"devDependencies": {
"@types/auth0-lock": "^10.0.20",
"@types/jasmine": "^2.2.30",
- "angular-cli": "^1.0.0-beta.22-1",
+ "angular-cli": "^1.0.0-beta.24",
"codelyzer": "~0.0.26",
"jasmine-core": "2.4.1",
"jasmine-spec-reporter": "2.5.0",
Now when I run I have
npm i
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN angular2-jwt@0.1.27 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN angular2-toaster@1.1.0 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN angularfire2@2.0.0-beta.6 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/core@2.2.3 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/router@3.2.3 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/http@2.2.3 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN tslint-loader@3.3.0 requires a peer of tslint@^4.0.0 but none was installed.
npm WARN @ngtools/webpack@1.2.1 requires a peer of @angular/compiler@^2.3.1 but none was installed.
npm WARN @ngtools/webpack@1.2.1 requires a peer of @angular/core@^2.3.1 but none was installed.
npm WARN @angular/compiler-cli@2.4.1 requires a peer of @angular/compiler@2.4.1 but none was installed.
npm WARN @angular/compiler-cli@2.4.1 requires a peer of @angular/core@2.4.1 but none was installed.
➜ ng2-admin-lte git:(master) ✗ npm run start
> ng2-admin-lte@0.7.0 start /home/iskiridomov/dialect/portal2/ng2-admin-lte
> ng serve
core_1.Version is not a constructor
TypeError: core_1.Version is not a constructor
at Object.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/@angular/compiler-cli/src/version.js:18:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/@angular/compiler-cli/index.js:24:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/@ngtools/webpack/src/plugin.js:5:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/@ngtools/webpack/src/index.js:6:10)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/models/webpack-build-typescript.js:3:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/models/webpack-config.js:2:34)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/tasks/build-webpack.js:6:24)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/commands/build.js:4:23)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Class.includedCommands (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/addon/index.js:21:16)
at /home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/ember-cli/lib/models/project.js:335:61
at Array.forEach (native)
at Project.addonCommands (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/ember-cli/lib/models/project.js:334:15)
at Project.eachAddonCommand (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/ember-cli/lib/models/project.js:369:30)
at module.exports (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/ember-cli/lib/cli/lookup-command.js:33:13)
at CLI.<anonymous> (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/angular-cli/ember-cli/lib/cli/cli.js:43:26)
at tryCatch (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/rsvp/dist/rsvp.js:538:12)
at invokeCallback (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/rsvp/dist/rsvp.js:553:13)
at publish (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/rsvp/dist/rsvp.js:521:7)
at flush (/home/iskiridomov/dialect/portal2/ng2-admin-lte/node_modules/rsvp/dist/rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
npm ERR! Linux 4.8.0-30-generic
npm ERR! argv "/home/iskiridomov/.nvm/versions/node/v6.9.2/bin/node" "/home/iskiridomov/.nvm/versions/node/v6.9.2/bin/npm" "run" "start"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! ng2-admin-lte@0.7.0 start: `ng serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng2-admin-lte@0.7.0 start script 'ng serve'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-admin-lte package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng serve
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-admin-lte
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-admin-lte
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/iskiridomov/dialect/portal2/ng2-admin-lte/npm-debug.log
Pull the last version I have fixed it this afternoon
Rm -rf node_modules Npm cache clear Git pull (if you are on my branch) Npm install
Now it's good.