The Vue project encountered an error when running, as shown in the following figure:
after clicking on it, the following prompt appears:
it may be that there is an error in the reference of the resource path, such as vue.config.js In the configuration, the public path is “.”/”, while the browser is http://192.168.1.12 : 8080/test/#/to access the project in this way, there is an additional secondary directory /Test /, resulting in the resource cannot be found.
method 1: put vue.config.js In the configuration, publicpath: ‘/’
method 2: remove the secondary directory http://192.168.1.12 :8080/#/
Read More:
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- Uncaught syntax error: unexpected token ‘< 0‘
- Error: unexpected syntax error: unexpected token<
- syntax error near unexpected token `else’
- syntax error near unexpected token `then’ problem solution
- Shell script syntax error near unexpected token ‘$’Do
- Syntax error: unexpected token in uni app project compilation
- Syntax error near unexpected token `newline’script cannot be executed
- Solve the problem of shell script “syntax error near unexpected token `fi’”.
- [development experience] solution to unexpected syntax error: unexpected identifier in JSON parsing
- Syntax error near unexpected token ‘$’Do is reported when running bash file
- Docker machine install syntax error near unexpected token ‘newline’! DOCTYPE HTML problem resolution
- “Unexpected syntax error: unexpected identifier”.
- Shell script execution error: “syntax error near unexpected token”
- Error: syntax error – unexpected token P in JSON at position 0
- Baidu editor echo JS error uncaught syntax error: invalid or unexpected token
- Parsing error: Unexpected token
- chunk-vendors.7142f8da.js:1 Uncaught SyntaxError: Unexpected token ‘<‘
- Module build failed: SyntaxError: Unexpected token
- Strange exception 001: invalid or unexpected token