question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during production build (When i installed the latest stable nodejs 6.11.0)

See original GitHub issue

Hi, I upgrade my nodejs version from 6.10.3 to 6.11.0 and now i can’t build to production. Please check the error message:

ERROR in Error encountered resolving symbol values statically. Could not resolve @angular/cdk relative to C:/Users/George Tzinos/Desktop/projects/my_app_name/node_modules/@angular/material/typings/index.d.ts., resolving symbol MdCoreModule in C:/Users/George Tzinos/Desktop/projects/my_app_name/node_modules/@angular/material/typings/index.d.ts, resolving symbol MdCoreModule in C:/Users/George Tzinos/Desktop/projects/my_app_name/node_modules/@angular/material/typings/index.d.ts

ERROR in ./src/main.ts Module not found: Error: Can’t resolve ‘./$$_gendir/app/app.module.ngfactory’ in ‘C:\Users\George Tzinos\Desktop\projects\my_app_name\src’ @ ./src/main.ts 3:0-74 @ multi ./src/main.ts

My packages:

` { “name”: “my_app_name”, “version”: “0.0.0”, “scripts”: { “ng”: “ng”, “start”: “ng serve”, “build”: “ng build”, “test”: “ng test”, “lint”: “ng lint”, “e2e”: “ng e2e” }, “private”: true, “dependencies”: { “@angular/animations”: “^4.1.3”, “@angular/common”: “^4.1.3”, “@angular/compiler”: “^4.1.3”, “@angular/core”: “^4.1.3”, “@angular/flex-layout”: “latest”, “@angular/forms”: “^4.1.3”, “@angular/http”: “^4.1.3”, “@angular/material”: “^2.0.0-beta.7”, “@angular/platform-browser”: “^4.1.3”, “@angular/platform-browser-dynamic”: “^4.1.3”, “@angular/router”: “^4.1.3”, “core-js”: “^2.4.1”, “font-awesome”: “^4.7.0”, “hammerjs”: “^2.0.8”, “material-design-icons-iconfont”: “^3.0.3”, “roboto-fontface”: “^0.7.0”, “ng2-cookies”: “^1.0.12”, “primeng”: “^4.1.0-rc.2”, “rxjs”: “^5.1.0”, “zone.js”: “0.8.10”, “angular2-websocket”: “^0.9.2” }, “devDependencies”: { “@angular/cli”: “1.1.3”, “@angular/compiler-cli”: “^4.1.3”, “@types/jasmine”: “2.5.49”, “@types/node”: “~7.0.23”, “codelyzer”: “~3.0.1”, “jasmine”: “^2.5.3”, “jasmine-core”: “~2.6.1”, “jasmine-spec-reporter”: “~4.1.0”, “karma”: “^1.4.1”, “karma-chrome-launcher”: “~2.1.1”, “karma-cli”: “~1.0.1”, “karma-coverage-istanbul-reporter”: “^1.2.1”, “karma-jasmine”: “~1.1.0”, “karma-jasmine-html-reporter”: “^0.2.2”, “protractor”: “~5.1.0”, “protractor-browser-logs”: “^1.0.350”, “ts-node”: “~3.0.4”, “tslint”: “~5.2.0”, “typescript”: “~2.3.2” } }

`

As you can see i am using material 2 beta-7 and it installs the beta-8.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vydyascommented, Aug 2, 2017

you guys saved my time alot

0reactions
angular-automatic-lock-bot[bot]commented, Sep 6, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I cannot deploy and keep getting this error: | by Ron Ft Jr.
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...
Read more >
npm does not support Node.js v10.15.2 · Issue #1877 - GitHub
It looks like current installed npm is not compatible with Node.js version you are using. You'll probably need to update your npm using...
Read more >
npm WARN npm npm does not support Node.js v9.1.0
It turns out that the current installed npm is not compatible with the new node and has a hard time updating. The solution...
Read more >
Node v6.11.0 (LTS)
Node.js ® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Read more >
Why is my Node.js build failing because of no ... - Heroku Help
Issue. Heroku needs to know what version of Node.js to download for any app that is deployed on our platform. The convention is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found