nuxt: Error on using postcss

Environment

System: OS: Windows 10 10.0.19044 CPU: (8) x64 Intel® Core™ i5-10300H CPU @ 2.50GHz Memory: 690.30 MB / 15.78 GB Binaries: Node: 16.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.23.0-20220130.1630 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.76) Internet Explorer: 11.0.19041.1566

Reproduction

Describe the bug

This bug happened in the first installation of “nuxt”: “^2.15.8” project, also in my old projects after reinstalling the packages.

I tried several different ways such as upgrading nuxt to v2.16.0 or upgrading PostCSS to v8 and tried different configuration docs of postCss plugins, but it’s still the same Error.

Additional context

No response

Logs

ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'plugins'. These properties are valid:
   object { postcssOptions?, execute?, sourceMap?, implementation? }

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments