Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro while "ng build --prod --aot" #9

Open
dotnetexpert opened this issue Mar 21, 2017 · 4 comments
Open

Erro while "ng build --prod --aot" #9

dotnetexpert opened this issue Mar 21, 2017 · 4 comments

Comments

@dotnetexpert
Copy link

ERROR in Error encountered resolving symbol values statically. Calling function 'makeParamDecorator', function c
alls are not supported. Consider replacing the function or lambda with a reference to an exported function, reso
lving symbol Injectable in D:/Praveen data/angular/Merchat Project/node_modules/ng2-password-strength-bar/node_m
odules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in D:/Praveen data/angular/Merchat Proje
ct/node_modules/ng2-password-strength-bar/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol
OpaqueToken in D:/Praveen data/angular/Merchat Project/node_modules/ng2-password-strength-bar/node_modules/@angu
lar/core/src/di/opaque_token.d.ts

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\Praveen data\angular\Mercha
t Project\src'
@ ./src/main.ts 5:0-74
@ multi ./src/main.ts

@rnadler
Copy link
Owner

rnadler commented Mar 21, 2017

I think I ran into the same problem. I can't find the source, but this solution worked for me:

rm -rf ./node_modules/@types/core-js

@dotnetexpert
Copy link
Author

I ran "rm -rf ./node_modules/@types/core-js" in git, then I ran "ng build --prod --aot".
ERROR in Error encountered resolving symbol values statically. Calling function 'makePar
amDecorator', function calls are not supported. Consider replacing the function or lambd
a with a reference to an exported function, resolving symbol Injectable in D:/Praveen da
ta/angular/Merchat Project/node_modules/ng2-password-strength-bar/node_modules/@angular/
core/src/di/metadata.d.ts, resolving symbol OpaqueToken in D:/Praveen data/angular/Merch
at Project/node_modules/ng2-password-strength-bar/node_modules/@angular/core/src/di/opaq
ue_token.d.ts, resolving symbol OpaqueToken in D:/Praveen data/angular/Merchat Project/n
ode_modules/ng2-password-strength-bar/node_modules/@angular/core/src/di/opaque_token.d.t
s

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\Pra
veen data\angular\Merchat Project\src'
@ ./src/main.ts 5:0-74
@ multi ./src/main.ts

Still Error.
OS- win 7
Type script -Version 2.2.1
NPM -4.1.1
Node -v7.7.1

"dependencies": {
"@angular/common": "^2.3.1",
"@angular/compiler": "^2.3.1",
"@angular/core": "^2.3.1",
"@angular/forms": "^2.3.1",
"@angular/http": "^2.3.1",
"@angular/material": "^2.0.0-beta.1",
"@angular/platform-browser": "^2.3.1",
"@angular/platform-browser-dynamic": "^2.3.1",
"@angular/router": "^3.3.1",
"bootstrap": "^3.3.7",
"core-js": "^2.4.1",
"ng2-password-strength-bar": "^1.0.1",

@st3fun1
Copy link

st3fun1 commented Apr 27, 2017

Any idea how to fix this?

@olehleskiv
Copy link

@st3fun1 try to move @angular/common and @angular/core at ng2-password-strength-bar package.json

 "peerdependencies": {
    "@angular/common": "^?.?.?",
    "@angular/core": "^?.?.?"
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants