It can not running after execute npm start #804

Open
opened 2017-05-19 15:36:52 +00:00 by kaifuluca2016 · 1 comment
kaifuluca2016 commented 2017-05-19 15:36:52 +00:00 (Migrated from github.com)

It can execute "npm run build" and prompt it is correct. But it can not running "npm start". It prompt information as follow:
"ERROR in Error encountered resolving symbol values statically. Could not resolve ng2-file-upload relative to C:/Dev/workspace/ng/ng2-file-upload/demo/src/app/app.module.ts., resolving symbol AppModule in C:/Dev/workspace/ng/ng2-file-upload/demo/src/app/app.module.ts, resolving symbol AppModule in C:/Dev/workspace/ng/ng2-file-upload/demo/src/app/app.module.ts

ERROR in ./demo/src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'C:\Dev\workspace\ng\ng2-file-upload\demo\src'
@ ./demo/src/main.ts 5:0-74
@ multi webpack-dev-server/client?http://localhost:4200 ./demo/src/main.ts
"

It can execute "npm run build" and prompt it is correct. But it can not running "npm start". It prompt information as follow: "ERROR in Error encountered resolving symbol values statically. Could not resolve ng2-file-upload relative to C:/Dev/workspace/ng/ng2-file-upload/demo/src/app/app.module.ts., resolving symbol AppModule in C:/Dev/workspace/ng/ng2-file-upload/demo/src/app/app.module.ts, resolving symbol AppModule in C:/Dev/workspace/ng/ng2-file-upload/demo/src/app/app.module.ts ERROR in ./demo/src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'C:\Dev\workspace\ng\ng2-file-upload\demo\src' @ ./demo/src/main.ts 5:0-74 @ multi webpack-dev-server/client?http://localhost:4200 ./demo/src/main.ts "
coorter commented 2017-07-03 21:20:02 +00:00 (Migrated from github.com)

I had the same issue and fixed it like this:

  • in root directory you have to type: npm link
  • in demo directory type npm link ng2-file-upload

Fix founded here

After this you should be able to start command npm start properly.

I had the same issue and fixed it like this: * in root directory you have to type: npm link * in demo directory type npm link ng2-file-upload Fix founded [here](https://stackoverflow.com/questions/8088795/installing-a-local-module-using-npm) After this you should be able to start command npm start properly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#804