Postcss-resolve-url: postcss.plugin was deprecated
See original GitHub issueWhat version of Next.js are you using?
12.0.7
What version of Node.js are you using?
16.13.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next dev, next build
Describe the Bug
Afer upgrading from 12.0.4 to 12.0.7, the following message appears when yarn dev
or yarn build && yarn start
:
postcss-resolve-url: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
Expected Behavior
The deprecation warning does not show.
To Reproduce
- checkout
next.js/examples/with-next-sass
greater than 12.0.4 - Run
yarn
- Run
yarn dev
$ > yarn dev
yarn run v1.22.17
$ next
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
postcss-resolve-url: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
event - compiled client and server successfully in 1448 ms (171 modules)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:17
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to migrate postcss.plugin to postCSS 8 format
This throws errors like this in console when running tape test/*.js |faucet : Error: postcss.plugin was deprecated. Migration guide: https:// ...
Read more >Address "postcss.plugin was deprecated" warning - Drupal
Address "postcss.plugin was deprecated" warning ... As of #3261163: Update to PostCSS 8 there's a deprecation warning during yarn build
Read more >PostCSS 8.0: Plugin migration guide - Evil Martians
Plugins designed for older versions of PostCSS can use deprecated ways of building nodes (e.g., postcss.decl() ). Mixing AST nodes created by ...
Read more >Wepack warnings about missing types when running dev build
Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration modules-extract-imports: postcss.plugin was deprecated.
Read more >postcss/postcss - Gitter
I tried to update my PostCSS plugins yesterday and became distracted with Web Components and new CSS polyfills. I'm sorry. If someone is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Related to #31762. This is just a warning and will not affect running your app so it’s safe to ignore until it’s fixed in Next.js.
@tonytoth Your error is different from what JameelKhan9 wrote. Also, it is not reproducible by the steps given by them. Please provide a minimal, reproducible example. Next.js is already using
postcss@8.2.15
, so the error in your case most probably has to do something with your own setup.