The Wayback Machine - https://web.archive.org/web/20200913015230/https://github.com/javascript-tutorial/server/issues/68
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postcss-loader v4.0.0 released #68

Open
hysimok opened this issue Sep 8, 2020 · 0 comments
Open

postcss-loader v4.0.0 released #68

hysimok opened this issue Sep 8, 2020 · 0 comments

Comments

@hysimok
Copy link

@hysimok hysimok commented Sep 8, 2020

Due to the latest version of postcss-loader(v4.0.0) released on 9/7, an error ModuleBuildError occurs.

👇 Error message:

Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.

Check major changes in release note,

  • PostCSS (plugins/syntax/parser/stringifier) options was moved to the postcssOptions option, please look at docs

There are two ways to fix this.

  1. Change PostCss to postcssOptions
  2. Fix postcss-loader version to 3.0.0 in package.json

The first method seems better, so let me make a pull request using the first method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
HTTPS · web.archive.org
← Home