small medium large xlarge

Back to: All Forums  React for Real
13 Mar 2018, 11:59
Ludovico Fischer (10 posts)

If you install the latest webpack version, you might have trouble running the build command you create in package.json in Chapter 3. The reason is that the webpack command-line program is missing.

From webpack 4, the webpack command is not included in the webpack npm package. To run the build command from Chapter 3 and the following chapters, you also need to install the webpack-cli package every time the book tells you to install the webpack package:

npm i --save-dev webpack-cli
You must be logged in to comment