loiane / angular2-crud-rest

Sample Angular (2.x and 4.x) app: CRUD example + routing
145 stars 90 forks source link

Problem with angular2-materialize #6

Open kav48382 opened 7 years ago

kav48382 commented 7 years ago

I cannot run it with npm start It is probably related to node_modules that I am using from another project. How properly generate node_modules for this project? The error is ERROR in Error encountered resolving symbol values statically. Could not resolve angular2-materialize relative to D:/dev/Test/_Angular2code/cd/angular2-crud-rest-master/src/app/app.module.ts., resolving symbol AppModule in D:/dev/Test/_Angular2code/cd/angular2-crud-rest-master/src/app/app.module.ts, resolving symbol AppModule in D:/dev/Test/_Angular2code/cd/angular2-crud-rest-master/src/app/app.module.ts

ERROR in multi script-loader!./~/jquery/dist/jquery.js script-loader!./~/materialize-css/rxjs/add/operator/materialize.js Module not found: Error: Can't resolve 'D:\dev\Test_Angular2code\cd\angular2-crud-rest-master\node_modules\jquery\dist\jquery.js' in 'D:\dev\Test_Angular2code\cd\angular2-crud-rest-master' @ multi script-loader!./~/jquery/dist/jquery.js script-loader!./~/materialize-css/rxjs/add/operator/materialize.js

ERROR in multi script-loader!./~/jquery/dist/jquery.js script-loader!./~/materialize-css/rxjs/add/operator/materialize.js Module not found: Error: Can't resolve 'D:\dev\Test_Angular2code\cd\angular2-crud-rest-master\node_modules\materialize-css\rxjs\add\operator\materialize.js' in 'D:\dev\Test_Angular2code\cd\angular2-crud-rest-master' @ multi script-loader!./~/jquery/dist/jquery.js script-loader!./~/materialize-css/rxjs/add/operator/materialize.js

ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\dev\Test_Angular2code\cd\angular2-crud-rest-master\src' @ ./src/main.ts 4:0-74 @ multi ./src/main.ts

ERROR in ./src/styles.css Module not found: Error: Can't resolve '../node_modules/materialize-css/dist/css/materialize.css' in 'D:\dev\Test_Angular2code\cd\angular2-crud-rest-master\src' @ ./src/styles.css 3:10-174 @ multi ./src/styles.css

JonathanCedrim commented 6 years ago

you've used command npm install?

kav48382 commented 6 years ago

You are right, I've learned it. Thanks!

JonathanCedrim commented 6 years ago

You're welcome, go go!