This is what I Vue found by previewing with serve – s dist after packaging
reason There is a problem with the parameters configured in vue.config.js
publicPath: process.env.NODE_ENV === 'production'
?'/execl_forward/'
: '/'
Then use NPM run build to package
Cause static file error
So I created EXECL in dist_ Forward folder put CSS and JS folders in it
Then it was solved
Or use the default packaging method
Vue.config.js
publicPath: './'
Read More:
- Baidu editor echo JS error uncaught syntax error: invalid or unexpected token
- ERROR in static/js/app.xxxxxxx.js from UglifyJs Unexpected token: operator (>)
- SCRIPT1002: syntax error File: 0. chunk.js ,SCRIPT5009: ‘Map‘ is undefined File: 0. chunk.js -Solutions
- Uncaught syntax error: unexpected token ‘< 0‘
- Module build failed: SyntaxError: Unexpected token
- [system]SyntaxError: Unexpected token u in JSON at position 0
- Unexpected token appears in JS
- JS error: unexpected token u in JSON at position 0
- Unexpected syntax error: unexpected token<
- Uncaught SyntaxError: missing ) after argument list
- Uncaught Error: THREE.OBJLoader : unexpected line: “DOCTYPE HTML” [solved]
- Syntax error: unexpected token in uni app project compilation
- Module parse failed:Unexpected token (9:6)
- SyntaxError: unexpected EOF while parsing
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- Parsing error: Unexpected token
- syntax error near unexpected token `then’ problem solution
- 2021-07-03module parse failed: unexpected token (763:13) you may need an appropriate loader to
- syntax error near unexpected token `else’
- Strange exception 001: invalid or unexpected token