I am new to vue. While learning from tutorial (watch and code), I ran $ npm run build
and I got this error. Using vue3
ERROR Error: CSS minification error: Parse error on line 1:
^
Expecting "CALC", "LPAREN", "ADD", "SUB", "FUNCTION", "LENGTH", "ANGLE", "TIME", "FREQ", "RES", "UNKNOWN_DIMENSION", "EMS", "EXS", "CHS", "REMS", "VHS", "VWS", "VMINS", "VMAXS", "PERCENTAGE", "NUMBER", "expression", "math_expression", "function", "dimension", "number", got unexpected end of input. File: css/app.4b6f641c.css
Error: CSS minification error: Parse error on line 1:
^
Expecting "CALC", "LPAREN", "ADD", "SUB", "FUNCTION", "LENGTH", "ANGLE", "TIME", "FREQ", "RES", "UNKNOWN_DIMENSION", "EMS", "EXS", "CHS", "REMS", "VHS", "VWS", "VMINS", "VMAXS", "PERCENTAGE", "NUMBER", "expression", "math_expression", "function", "dimension", "number", got unexpected end of input. File: css/app.4b6f641c.css
at /home/benjamin/vue-crash-2022/node_modules/@intervolga/optimize-cssnano-plugin/index.js:106:21
at async Promise.all (index 0)
npm ERR! code 1
npm ERR! path /home/benjamin/vue-crash-2022
npm ERR! command failed
npm ERR! command sh -c vue-cli-service build
npm ERR! A complete log of this run can be found in:
npm ERR! /home/benjamin/.npm/_logs/2022-02-04T14_40_59_455Z-debug.log
I don't really have clue at all to this error and vue. I will appreciate clarity in answers or recommended documentations.
I caught the error. The errors were in my internal css. When I commented them it worked.
If anyone has similar problem, just work through your internal css to make sure they are in tight.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.