Ie11 error reporting details
Analysis
Through finding the problem, it is found that the problem occurs in the crypto JS package. Because this error is reported only in ie, the page cannot be loaded. It is thought that the syntax in this package is ie incompatible
Solution:
Let this package be Babel translated
chainWebpack(config) {
// For IE compatibility, the js under crypto-js and some node_modules have to be babel-translated
config.module
.rule('js')
.exclude.clear().end()
.include
.add(resolve('src'))
.add(resolve('node_modules/@quanzhiFE/qz-frontend-biz/src'))
.add(resolve('node_modules/element-ui/lib'))
.add(resolve('node_modules/crypto-js'))
.end()
}
Read More:
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Node.js v17 npm run dev Error: opensslErrorStack
- Yarn vue3 modify the name of the source file Error [Solved]
- [Solved] SyntaxError: Cannot use import statement outside a module
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- Vue Install less Error: While resolving: [email protected]
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] ERROR Error: Cannot find module ‘vue-loader-v16/package.json‘
- Error: Cannot find module ‘./application‘ [How to Solve]
- [Solved] Error: error:0308010C:digital envelope routines::unsupported
- Node.js Error: Error: Cannot find module ‘express‘ [How to Solve]
- [Solved] Vue unit test syntax error: unexpected token ‘export‘
- [Solved] npm Error: Class extends value undefined is not a constructor or null
- [Solved] Vue Error: Module build failed: Error: No PostCSS Config found in
- [Solved] Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- [Solved] Vue Error: Syntax Error: TypeError: Cannot set properties of undefined (setting ‘XXX’)