Scene description
The React project starts with NPM run start
and works fine in Chrome, Firefox, and Edge, but when Internet explorer opens, the console reports an error with the title
The solution
1.SCRIPT1002: syntax error File: 0. Chunk. Js, Line: 2296, Column: 27
SRC /index.js
add the following and put it on the first line
import 'react-app-polyfill/ie9';
import 'react-app-ployfill/stable;'
import 'fast-text-encoding/text';
Json
find browserslist
and add ie9 which is the above support
"browserslist" {
"production": [
...,
"ie>9",
],
"development": [
...
"ie>9",
]
},
First, ensure the above module, if not, you can execute NPM install
to install
After the module is installed, Internet Explorer opens the project again and the problem is resolved. But then the following problem arises…
2.SCRIPT5022: SyntaxError File: 1. chunk.js, Line: 197681, Column: 38
The error in the Internet Explorer console, the solution:
Open the /node_modules/react - dev - utils/webpackHotDevClient js code>, in the following code to add
slashes: true, code>
then,
goes into the node_moudles
folder, delete all contents of the . Cache
folder, and clear the cache in Internet explorer.
SCRIPT5009: 'Map' is File: Map is undefined e.chunk.js, Line: 2340,0 Column: 3
I did not solve this error by myself. Due to the company project, NPM install
cannot be run on the server's Intranet. Therefore, I provide ideas and hope you can solve it perfectly.
Official advice: https://reactjs.org/docs/javascript-environment-requirements.html code>
calculate, this has not been solved, sorry...
Read More:
- chunk-vendors.7142f8da.js:1 Uncaught SyntaxError: Unexpected token ‘<‘
- Uncaught Error: Script error for ” popper.js “, needed by: bootstrap solution
- After NPM run dev is running, the browser does not respond and reports an error in. / ~ / Babel loader / lib! / ~ / Vue loader / lib/ selector.js?type=script&in
- Chunkloaderror caused by deleteoriginalassets: loading chunk * failed error
- An error is reported when the less file is introduced into main.js
- Transfer: completely solve the problem that the browser home page is tampered by deleting the script file
- Unity3d mount script error “can’t add script behavior TMP”_ CoroutineTween. …”
- Transformation of JS map and JSON
- Shell script syntax error near unexpected token ‘$’Do
- Syntax error near unexpected token `newline’script cannot be executed
- ERROR in static/js/app.xxxxxxx.js from UglifyJs Unexpected token: operator (>)
- JS prompt cannot read property ‘style’ of undefined
- Solve the problem of shell script “syntax error near unexpected token `fi'”.
- How to read JS file app.ux Global variables in
- Shell script execution error: “syntax error near unexpected token”
- Use less.js to verify and report an error in the Vue file of vscode
- Solution to shell script error “expr: syntax error”
- [shell] sh executes the script and reports an error syntax error: “(” unexpected “)
- SH script reports error “Eval: Line 1: syntax error: terminated quoted string”
- Vue project reports an error on ie11 white screen. Script1002: syntax error