Npm run build failed to package vue-cli project

the package reports an error directly, and the package file cannot be generated

> hzm_wap@1.0.0 build C:\Users\shend\Desktop\hzm_wap> node build/build.js
- building for production...Error processing file: static/css/app.f58dfc4095d0bb5a8de1d2eb75695025.css(node:11924) UnhandledPromiseRejectionWarning: TypeError: Cannot read property "value" of undefined    at Parser.parentheses (C:\Users\shend\Desktop\hzm_wap\node_modules\postcss-selector-parser\dist\parser.js:309:13)
   at Parser.parse (C:\Users\shend\Desktop\hzm_wap\node_modules\postcss-selector-parser\dist\parser.js:533:22)
   at Parser.loop (C:\Users\shend\Desktop\hzm_wap\node_modules\postcss-selector-parser\dist\parser.js:519:18)
   at new Parser (C:\Users\shend\Desktop\hzm_wap\node_modules\postcss-selector-parser\dist\parser.js:104:21)
   at Processor.process (C:\Users\shend\Desktop\hzm_wap\node_modules\postcss-selector-parser\dist\processor.js:26:21)
   at getParsed (C:\Users\shend\Desktop\hzm_wap\node_modules\postcss-minify-selectors\dist\index.js:32:59)
   at optimise (C:\Users\shend\Desktop\hzm_wap\node_modules\postcss-minify-selectors\dist\index.js:139:21)
   at C:\Users\shend\Desktop\hzm_wap\node_modules\cssnano\node_modules\postcss\lib\container.js:241:28
   at C:\Users\shend\Desktop\hzm_wap\node_modules\cssnano\node_modules\postcss\lib\container.js:148:26
   at Root.each (C:\Users\shend\Desktop\hzm_wap\node_modules\cssnano\node_modules\postcss\lib\container.js:114:22)
   at Root.walk (C:\Users\shend\Desktop\hzm_wap\node_modules\cssnano\node_modules\postcss\lib\container.js:147:21)
   at Root.walkRules (C:\Users\shend\Desktop\hzm_wap\node_modules\cssnano\node_modules\postcss\lib\container.js:239:25)    at C:\Users\shend\Desktop\hzm_wap\node_modules\postcss-minify-selectors\dist\index.js:165:20
   at LazyResult.run (C:\Users\shend\Desktop\hzm_wap\node_modules\cssnano\node_modules\postcss\lib\lazy-result.js:274:20)
   at LazyResult.asyncTick (C:\Users\shend\Desktop\hzm_wap\node_modules\cssnano\node_modules\postcss\lib\lazy-result.js:189:32)
   at LazyResult.asyncTick (C:\Users\shend\Desktop\hzm_wap\node_modules\cssnano\node_modules\postcss\lib\lazy-result.js:201:22)
(node:11924) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11924) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

the first line prompts a value undefined. So much code

Apr.20,2022

Webpack postcss , cssnano configuration error, or version incompatibility


problem has been resolved because I wrote a css file with media query and separated browser compatibility with',',
reference link link description

Menu