Topic: MDB Angular2 ERROR in multi script-loader!

colinealcorp pro asked 6 years ago


Hi I am getting the following when trying to follow your instructions: ng server ERROR in multi script-loader!./~/web-animations-js/web-animations.min.js script-loader!./~/chart.js/dist/chart.js script-loader!./~/easy-pie-chart/dist/easypiechart.js script-loader!./~/screenfull/dist/screenfull.js Module not found: Error: Can't resolve '/home/developer/Desktop/mdb-angular-pro-4.1.0/node_modules/chart.js/dist/chart.js' in '/home/developer/Desktop/mdb-angular-pro-4.1.0' @ multi script-loader!./~/web-animations-js/web-animations.min.js script-loader!./~/chart.js/dist/chart.js script-loader!./~/easy-pie-chart/dist/easypiechart.js script-loader!./~/screenfull/dist/screenfull.js npm -v : 5.0.3 ng -v Your global Angular CLI version (1.2.1) is greater than your local version (1.0.0). The local Angular CLI version is used. To disable this warning use "ng set --global warnings.versionMismatch=false". _ _ ____ _ ___ / _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ | '_ / _| | | | |/ _ | '__| | | | | | | / ___ | | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ __| |_|__, |__,_|_|__,_|_| ____|_____|___| |___/ @angular/cli: 1.0.0 node: 8.1.4 os: linux x64 @angular/animations: 4.3.0 @angular/common: 4.3.0 @angular/compiler: 4.3.0 @angular/core: 4.3.0 @angular/forms: 4.3.0 @angular/http: 4.3.0 @angular/platform-browser: 4.3.0 @angular/platform-browser-dynamic: 4.3.0 @angular/router: 4.3.0 @angular/cli: 1.0.0 @angular/compiler-cli: 4.3.0 Hope you can lead me in the way :) Thanks

colinealcorp pro answered 6 years ago


hi @rze, thanks for your suggestion after editing .angular-cli.json "../node_modules/chart.js/dist/chart.js", to "../node_modules/chart.js/dist/Chart.js", I was able to get MDBAnuglar2 to work @Magdalena Obalska, thanks for your suggestion I did the following: npm uninstall -g @angular/cli # Remove global package npm uninstall --save-dev @angular/cli # Remove from package.json and then pm install -g @angular/cli@latest # Global package npm install --save-dev @angular/cli@latest # Local package npm install # Restore removed dependencies As for Cannot find module 'webpack/lib/node/NodeTemplatePlugin' Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin' I fixed it with: npm uninstall -g webpack npm install --save-dev html-webpack-plugin webpack webpack-dev-server Thanks for your kind help Cheers

rze pro answered 6 years ago


Hi, update your packages with the last versions and correct the file angular-cli.json with the script: "../node_modules/chart.js/dist/Chart.js" instead of "../node_modules/chart.js/dist/chart.js" It worked for me

Magdalena Obalska free answered 6 years ago


Hi, download the version, that your're using, one more time – there were few changes and bugs fixes in 4.1.0, so it should help. If necessary, you can also try to update the CLI locally to avoid the warning that you are getting.

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No