React-for-the-Visual-Learner
React-for-the-Visual-Learner copied to clipboard
Text changes needed to address Webpack and Babel installations
I propose making some changes to the installation instructions in Chapter 6 to set up Webpack and Babel. At the end of the chapter, when typing npm start as instructed by the author, I came across two issues. Here are the issues and how I solved them:
-
Important part of error message:
The CLI moved into a separate package: webpack-cliTo resolve, at the command line, I typednpm install --save-dev webpack-cli -Dand re-rannpm start. -
Important part of error message:
babel-loader@8 requires Babel 7.x (the package '@babel/core')To resolve, at the command line, I typednpm install --save-dev babel-loader@^7.0.0and re-rannpm start.
The third time was the charm, and npm start worked as expected.