follow the video operation, delete node_modules directory, webpack
ERROR in ./src/js/index.js
Module build failed: TypeError: fileSystem.statSync is not a function
at module.exports (/Users/mac/source/9-01/node_modules/babel-loader/lib/utils/exists.js:7:25)
at find (/Users/mac/source/9-01/node_modules/babel-loader/lib/resolve-rc.js:13:9)
at Object.module.exports (/Users/mac/source/9-01/node_modules/babel-loader/lib/index.js:113:132)
Baidu once, someone said because
webpack version inconsistency results. So reinstall
npm install webpack --save-dev
There are many warnings when performing this step
npm notice save webpack is being moved from dependencies to devDependencies
npm WARN [email protected] requires a peer of webpack@2 || 3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jquery@>=1.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
The babel-Loader version requires a more advanced WebPack, so execute the following statement to install version 3.0
npm install [email protected] --save-dev
Execute the WebPack and it will run successfully.