vuepress icon indicating copy to clipboard operation
vuepress copied to clipboard

Issue with [email protected]

Open tillsanders opened this issue 4 years ago • 1 comments

  • [x] I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

What is expected?

A successful build.

What is actually happening?

The build fails with the following output:

tip Clean cache...

debug applySyncOption: define
debug applySyncOption: alias
debug applySyncOption: chainWebpack
TypeError: node.getIterator is not a function
    at LazyResult.visitTick (/Users/till/Code/OpenElectionCompass/website/node_modules/optimize-css-assets-webpack-plugin/node_modules/postcss/lib/lazy-result.js:484:33)
    at LazyResult.runAsync (/Users/till/Code/OpenElectionCompass/website/node_modules/optimize-css-assets-webpack-plugin/node_modules/postcss/lib/lazy-result.js:372:30)
    at LazyResult.async (/Users/till/Code/OpenElectionCompass/website/node_modules/optimize-css-assets-webpack-plugin/node_modules/postcss/lib/lazy-result.js:205:30)
    at LazyResult.then (/Users/till/Code/OpenElectionCompass/website/node_modules/optimize-css-assets-webpack-plugin/node_modules/postcss/lib/lazy-result.js:190:17)
    at OptimizeCssAssetsWebpackPlugin.processCss (/Users/till/Code/OpenElectionCompass/website/node_modules/optimize-css-assets-webpack-plugin/src/index.js:81:8)
    at Object.processor (/Users/till/Code/OpenElectionCompass/website/node_modules/optimize-css-assets-webpack-plugin/src/index.js:20:18)
    at /Users/till/Code/OpenElectionCompass/website/node_modules/last-call-webpack-plugin/src/index.js:150:10
    at arrayEach (/Users/till/Code/OpenElectionCompass/website/node_modules/lodash/_arrayEach.js:15:9)
    at forEach (/Users/till/Code/OpenElectionCompass/website/node_modules/lodash/forEach.js:38:10)
    at OptimizeCssAssetsWebpackPlugin.process (/Users/till/Code/OpenElectionCompass/website/node_modules/last-call-webpack-plugin/src/index.js:147:5)
    at /Users/till/Code/OpenElectionCompass/website/node_modules/last-call-webpack-plugin/src/index.js:178:28
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/till/Code/OpenElectionCompass/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:8:17)
    at AsyncSeriesHook.lazyCompileHook (/Users/till/Code/OpenElectionCompass/website/node_modules/tapable/lib/Hook.js:154:20)
    at /Users/till/Code/OpenElectionCompass/website/node_modules/webpack/lib/Compilation.js:1409:36
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/till/Code/OpenElectionCompass/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/till/Code/OpenElectionCompass/website/node_modules/tapable/lib/Hook.js:154:20)

Other relevant information

I think the issue lies with the optimize-css-assets-webpack-plugin module and PostCSS. When I downgrade to the previous version, the build is successful.

npm i -D [email protected]

  • Output of npx vuepress info in my VuePress project:
  System:
    OS: macOS 11.3
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 14.16.0 - /usr/local/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 7.12.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 90.0.4430.212
    Edge: Not Found
    Firefox: 88.0
    Safari: 14.1
  npmPackages:
    @vuepress/core:  1.8.2 
    @vuepress/theme-default:  1.8.2 
    vuepress: ^1.8.2 => 1.8.2 
  npmGlobalPackages:
    vuepress: 1.8.2

tillsanders avatar May 16 '21 23:05 tillsanders

Had same issue, downgrading from latest to 5.0.3 worked.

Divide-By-0 avatar Jul 13 '22 20:07 Divide-By-0