ERROR in compiler_1.StaticSymbolCache is not a constructor

282 views
Skip to first unread message

norricorp

unread,
Feb 20, 2017, 11:22:35 AM2/20/17
to Angular and AngularJS discussion
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

>ng serve
** NG Live Development Server is running on http://localhost:4200. **
Hash: e0d3674f7d03f30ffc2f
Time: 13016ms
chunk    {0} main.bundle.js, main.bundle.js.map (main) 51.1 kB {2} [initial] [rendered]
chunk    {1} styles.bundle.js, styles.bundle.js.map (styles) 11.7 kB {3} [initial] [rendered]
chunk    {2} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.67 MB [initial] [rendered]
chunk    {3} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
ERROR in compiler_1.StaticSymbolCache is not a constructor
webpack: Failed to compile.

This problem started after I had to upgrade node from 4.5 to 6.9.5. And then upgraded angular-cli from beta 16 to beta 31.

It has been raised at https://github.com/angular/angular-cli/issues/4464 but not currently assigned and nothing happening.

Is anyone else having this problem?

norricorp

unread,
Feb 22, 2017, 6:08:12 AM2/22/17
to Angular and AngularJS discussion
So I possibly fixed it.
I created a new project and used the package.json file values in the existing project's json file.
Then I removed node_modules and dist folders, rerun npm install --save-dev @angular/cli@latest and npm install
and now ng serve works.


Reply all
Reply to author
Forward
0 new messages