angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ERROR in this. symbolResolver. getSymbolByModule is not a function

Open Karthi-SRV opened this issue 9 years ago • 11 comments

While compiling i got this error

chunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [rendered]
chunk    {1} main.bundle.js, main.bundle.js.map (main) 5.47 kB {3} [initial] [rendered]
chunk    {2} styles.bundle.js, styles.bundle.js.map (styles) 9.77 kB {4} [initial] [rendered]
chunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.36 MB [initial] [rendered]
chunk    {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]

ERROR in this.symbolResolver.getSymbolByModule is not a function

Angular version 4.0 and angular/angualr-cli version 1.0

Karthi-SRV avatar Apr 12 '17 21:04 Karthi-SRV

Last night my package was Ok, but today I installed "@angular/platform-server": "^4.0.2" and got this ERROR too. ng serve runs fine, but build fails :(

matheo avatar Apr 12 '17 22:04 matheo

rm -Rf node_modules/
npm update -D && npm update -S

did the trick, 4.0.2 out :D so I guess it was a version conflict.

matheo avatar Apr 12 '17 22:04 matheo

@matheo I'm having the exact same issue but running the commands which you provided doesn't help at all, the error remains the same.

Did you by any chance do anything extra ?

GBora avatar Apr 14 '17 08:04 GBora

I also needed to make sure that the "@angular/compiler-cli" vrsion matched the @angular version. In my case the version was upgraded to "^4.0.2"

mgm87 avatar Apr 14 '17 19:04 mgm87

I also have this issue, but then I re-save project in the editor, and 'ng serve' automatically re-compile again and the error disappears, but it is still strange

LimarenkoDenis avatar May 03 '17 13:05 LimarenkoDenis

My project has started doing this as well. At least it runs but I am concerned about automatic builds not working.

mgm87 avatar May 03 '17 14:05 mgm87

Seems like this was a dependency problem. Thanks for everyone that helped out!

filipesilva avatar May 05 '17 10:05 filipesilva

I have the same problem

image

My package.json is this:

{
  "name": "hello world",
  "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.8",
    "@angular/compiler": "2.4.8",
    "@angular/core": "2.4.8",
    "@angular/forms": "2.4.8",
    "@angular/http": "2.4.8",
    "@angular/platform-browser": "2.4.8",
    "@angular/platform-browser-dynamic": "2.4.8",
    "@angular/router": "3.4.8",
    "core-js": "^2.4.1",
    "rxjs": "5.1.1",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.7.7"
  },
  "devDependencies": {
    "@types/jasmine": "^2.2.30",
    "@angular/cli": "1.0.0-beta.32.3",
    "codelyzer": "~2.0.1",
    "jasmine-core": "2.5.2",
    "jasmine-spec-reporter": "3.2.0",
    "karma": "1.4.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.6.0",
    "protractor": "5.1.1",
    "ts-node": "2.1.0",
    "tslint": "4.4.2",
    "typescript": "2.1.6"
  }
}

my node and npm version is: node -v : v7.9.0 npm -v : 4.2.0

ronaiza-cardoso avatar May 30 '17 12:05 ronaiza-cardoso

install with save exact. remove '^' from all and then rm -Rf node_modules/ npm install. That might help

AbGrS avatar Jun 02 '17 12:06 AbGrS

Thank you @matheo , it did solve my issue

bobbypulpel avatar Jan 11 '18 16:01 bobbypulpel

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.