vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.56k stars 4.76k forks source link

optimize-css-assets-webpack-plugin version bug #2875

Open RhysXia opened 3 years ago

RhysXia commented 3 years ago

Bug report

Steps to reproduce

see this issue

optimize-css-assets-webpack-plugin released version 5.0.7 a few hours ago. Compared with 5.0.6, one of the changes is that postcss has changed from transitively dependent 7.x to 8.x, causing build errors.

What is expected?

build passed

What is actually happening?

build failed

recovery-alt commented 3 years ago

I have the same problem. Is there any solutions?

superZchen0701 commented 3 years ago

there are someone resolve the problem?

wangdaodao commented 3 years ago

build failed!

simllll commented 3 years ago
TypeError: node.getIterator is not a function
    at LazyResult.visitTick (/buddy/node_modules/postcss/lib/lazy-result.js:528:33)
    at LazyResult.runAsync (/buddy/node_modules/postcss/lib/lazy-result.js:408:30)
    at LazyResult.async (/buddy/node_modules/postcss/lib/lazy-result.js:221:30)
    at LazyResult.then (/buddy/node_modules/postcss/lib/lazy-result.js:206:17)
    at OptimizeCssAssetsWebpackPlugin.processCss (/buddy/node_modules/optimize-css-assets-webpack-plugin/src/index.js:81:8)
    at Object.processor (/buddy/node_modules/optimize-css-assets-webpack-plugin/src/index.js:20:18)
    at /buddy/node_modules/last-call-webpack-plugin/src/index.js:150:10
    at arrayEach (/buddy/node_modules/lodash/_arrayEach.js:15:9)
    at forEach (/buddy/node_modules/lodash/forEach.js:38:10)
    at OptimizeCssAssetsWebpackPlugin.process (/buddy/node_modules/last-call-webpack-plugin/src/index.js:147:5)
    at /buddy/node_modules/last-call-webpack-plugin/src/index.js:178:28
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/buddy/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:17)
    at AsyncSeriesHook.lazyCompileHook (/buddy/node_modules/tapable/lib/Hook.js:154:20)
    at /buddy/node_modules/webpack/lib/Compilation.js:1409:36
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/buddy/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)
    at AsyncSeriesHook.lazyCompileHook (/buddy/node_modules/tapable/lib/Hook.js:154:20)