I have gotten the following error when using ng serves in my angular-cli project:
ERROR in compiler_1.StaticSymbolCache isnt a constructor
This has not affected in any way the behavior of my project itself, but it causes NG Serve's live-reload to stop working.
I can not identify what is causing this error.
Xubuntu 16.04
angular-cli: 1.0.0-beta.26
node: 6.9.4
os: linux x64
@angular/common: 2.2.3
@angular/compiler: 2.2.3
@angular/core: 2.4.5
@angular/forms: 2.2.3
@angular/http: 2.2.3
@angular/platform-browser: 2.2.3
@angular/platform-browser-dynamic: 2.2.3
@angular/router: 3.2.3
@angular/compiler-cli: 2.4.5
This application was created totallyb using the cli.
This is my package.json content:
{
"name": "viva-ads-module",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"start": "ng serve",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test",
"pree2e": "webdriver-manager update",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/common": "2.4.5",
"@angular/compiler": "^2.2.3",
"@angular/core": "^2.4.5",
"@angular/forms": "2.4.5",
"@angular/http": "2.4.5",
"@angular/platform-browser": "2.4.5",
"@angular/platform-browser-dynamic": "2.4.5",
"@angular/router": "3.4.5",
"angular-cli": "^1.0.0-beta.26",
"angular2-materialize": "^6.3.0",
"angularfire2": "^2.0.0-beta.6",
"core-js": "^2.4.1",
"css-loader": "^0.26.1",
"firebase": "^3.6.4",
"hammerjs": "^2.0.8",
"jquery": "^3.1.1",
"materialize-css": "^0.98.0",
"ngx-uploader": "^2.0.12",
"rxjs": "^5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"zone.js": "^0.7.6"
},
"devDependencies": {
"@angular/compiler-cli": "^2.4.5",
"@types/jasmine": "2.5.41",
"@types/node": "^7.0.4",
"angular-cli": "^1.0.0-beta.26",
"codelyzer": "~2.0.0-beta.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "3.2.0",
"karma": "1.4.1",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.4.0",
"protractor": "5.0.0",
"ts-node": "2.0.0",
"tslint": "^4.0.2",
"typescript": "~2.1.5",
"webdriver-manager": "11.1.1"
}
}
ERROR in compiler_1.StaticSymbolCache is not a constructor
I'm having same issue
Same here.
@angular/cli: 1.0.0-beta.31
node: 6.9.4
os: linux x64
@angular/common: 2.2.1
@angular/compiler: 2.2.1
@angular/core: 2.4.7
@angular/forms: 2.2.1
@angular/http: 2.2.1
@angular/material: 2.0.0-beta.1
@angular/platform-browser: 2.2.1
@angular/platform-browser-dynamic: 2.2.1
@angular/router: 3.2.1
@angular/cli: 1.0.0-beta.31
@angular/compiler-cli: 2.4.7
Same here - updated node from 4 to 6.9.5, angular from beta 16 to beta 31.
Only difference to above is that OS is windows.
Followed upgrade instructions at https://github.com/angular/angular-cli#updating-angular-cli
And upgraded to beta 32 and still same problem.
Is there any help on this?
@norricorp have you tried removing the node_modules folder followed by an npm install?
Guys, I fixed my problem.
The message that the "angular-cli was deprecated" began to appear.
So I removed the "angular-cli" from my project and globally and replaced it with "@angular/cli".
After this change everything went back to working as before.
C:Tempangularjs_exampleangular2heroes_new>ng --version
@angular/cli: 1.0.0-beta.32.3 [1.0.0-beta.31]
node: 6.9.5
os: win32 x64
@angular/common: 2.2.1
@angular/compiler: 2.2.1
@angular/core: 2.4.7
@angular/forms: 2.2.1
@angular/http: 2.2.1
@angular/platform-browser: 2.2.1
@angular/platform-browser-dynamic: 2.2.1
@angular/router: 3.2.1
@angular/cli: 1.0.0-beta.32.3
@angular/compiler-cli: 2.4.7
Mine already says @angular/cli so it may be a premature close.
Yes I did delete node_modules and dist as the update instructions specify.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
I'm having same issue