Syntax error: unexpected token in uni app project compilation
Contents of articles
Syntax error: unexpected token error content error reason solution for uni app project compilation
Error content
Originally, it could run well. When it was pulled down and then run to wechat applet, it would report an error, but the web side could run normally~
Module build failed (from ./node_ modules/mini-css-extract-plugin/dist/ loader.js ):
The details are as follows:
Cause of error
None of the solutions found in the search work.
After a careful examination of the code, it is found that the & lt; script & gt; code> tag appears twice in a newly modified Vue file. The new one is used to describe the style,
Solution
The problem is solved by merging the content in the new & lt; script & gt; code> into the
& lt; style & gt; code> tag
Note that there can only be three top-level tags in uni app!!
The root of the problem is that the team didn't communicate well, so there was a problem.. But uni app really has a lot of holes!!!!
Read More:
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- ERROR in static/js/app.xxxxxxx.js from UglifyJs Unexpected token: operator (>)
- Unexpected syntax error: unexpected token<
- syntax error near unexpected token `then’ problem solution
- Uncaught syntax error: unexpected token ‘< 0‘
- Shell script syntax error near unexpected token ‘$’Do
- Syntax error near unexpected token `newline’script cannot be executed
- Error: syntax error – unexpected token P in JSON at position 0
- About writing [if] and [else] statements in JSP, Syntax error on token “else”, delete this token
- Solve the problem of shell script “syntax error near unexpected token `fi'”.
- syntax error near unexpected token `else’
- Syntax error near unexpected token ‘$’Do is reported when running bash file
- Shell script execution error: “syntax error near unexpected token”
- Error: unexpected syntax error: unexpected token<
- Docker machine install syntax error near unexpected token ‘newline’! DOCTYPE HTML problem resolution
- [development experience] solution to unexpected syntax error: unexpected identifier in JSON parsing
- Front end project runtime prompts syntax error: typeerror: token.type.endswith is not a function solution
- Error resolution of unexpected token in JSON at position 0
- Baidu editor echo JS error uncaught syntax error: invalid or unexpected token
- Syntax error on token “}“, delete this token