Open wangdaodao opened 3 years ago
The error seems caused by postcss@8
, the optimize-css-assets-webpack-plugin
is dependent on postcss@8
but I am unable to downgrade it.
└─┬ vuepress@1.8.2
└─┬ @vuepress/core@1.8.2
├─┬ autoprefixer@9.8.6
│ └── postcss@7.0.36
├─┬ css-loader@2.1.1
│ ├─┬ icss-utils@4.1.1
│ │ └── postcss@7.0.36
│ ├── postcss@7.0.36
│ ├─┬ postcss-modules-extract-imports@2.0.0
│ │ └── postcss@7.0.36
│ ├─┬ postcss-modules-local-by-default@2.0.6
│ │ └── postcss@7.0.36
│ ├─┬ postcss-modules-scope@2.2.0
│ │ └── postcss@7.0.36
│ └─┬ postcss-modules-values@2.0.0
│ └── postcss@7.0.36
├─┬ optimize-css-assets-webpack-plugin@5.0.7
│ └── postcss@8.3.5
├─┬ postcss-loader@3.0.0
│ └── postcss@7.0.36
├─┬ postcss-safe-parser@4.0.2
│ └── postcss@7.0.36
└─┬ vue-loader@15.9.7
└─┬ @vue/component-compiler-utils@3.2.2
└── postcss@7.0.36
My workaround is to add selective dependency resolutions into package.json
and it can build correctly.
"resolutions": {
"optimize-css-assets-webpack-plugin": "5.0.6"
}
I think this is the same issue with #2875
Because of this issue the Getting Started guide fails for everyone:
npx create-vuepress-site
cd docs
npm install
npm run build
Error is the same as in the first topic.
My workaround is to add selective dependency resolutions into
package.json
and it can build correctly."resolutions": { "optimize-css-assets-webpack-plugin": "5.0.6" }
I think this is the same issue with #2875
Nice, it's work, thanks !
Bug report
Steps to reproduce
I think OptimizeCssAssetsWebpackPlugin is error!
What is expected?
build passed
What is actually happening?
build failed
Other relevant information