Categories
JavaScript Answers

How to fix webpack-dev-server Cannot find module ‘webpack’ error with JavaScript?

Spread the love

To fix webpack-dev-server Cannot find module ‘webpack’ error with JavaScript, we install some missing packages.

To install it, we run

npm install --save-dev webpack-dev-server 

to install webpack-dev-server to let us import the package.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *