When using async function, it gives error in webpack packaging
babel-polyfill
is required. You must also install it in order to get async/await working.
need add babel-polyfill
npm i -D babel-polyfill
There is an episode here. After testing, it is found that yarn cannot install CSS loader 1.0.0,
In addition, if you install CSS loader with NPM and then install other packages with yarn, you will also report an error. You can install with NPM
In the entry option of webpack.config.js
1 entry: ['babel-polyfill',join("./src/main.js")],