Cannot find module 'aspnet-webpack' when using 'Bootstrap4 & popper.js' in .Net Core 2.0 & knockout spa template
Cannot find module 'aspnet-webpack' when using 'Bootstrap4 & popper.js' in .Net Core 2.0 & knockout spa template
I created my .NetCore 2.0 & knockout project using command line. I successfully created and install npm packages.project run successfully. Then I update the version of Bootstrap from 3.3.7 to 4.1.3 and install
popper.js using npm and trying to run my project, my project spits out this error
System.AggregateException: 'One or more errors occurred. (Webpack dev middleware failed because of an error while loading 'aspnet-webpack'. Error was: Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:Usersknockout1node_modulesaspnet-webpackWebpackDevMiddleware.js:4:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Current directory is: C:Usersknockout1
)'
i updated my Webpack packages but no avail.Please help....
I checked that link and follow his steps. but error didn't remove
– dawoodmirza
Sep 7 '18 at 21:20
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
This thread should be helpful:link
– Roman Svitukha
Sep 7 '18 at 17:48