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")],
Similar Posts:
- Vue compatible ie error reporting solution
- webpack4 Cannot find module ‘@babel/core’ [Solved]
- Cannot findmodule’webpack-cli/bin/config-yargs
- WebPack Task Runner
- Cannot find module ‘@babel/core’ [How to Solve]
- Solutions to the problem that image webpack loader cannot be installed or the installation is stuck
- [Solved] [email protected] Error: Cannot find module ‘webpack/bin/config-yargs‘
- Webpack high version pulls out CSS style and reports an error [Solved]
- React uses antd to import error messages on demand
- Error in xxx.js from uglifyjs after elementui upgrade [How to Solve]