question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Postcss-resolve-url: postcss.plugin was deprecated

See original GitHub issue

What 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

  1. checkout next.js/examples/with-next-sass greater than 12.0.4
  2. Run yarn
  3. 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:closed
  • Created 2 years ago
  • Reactions:17
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

19reactions
timneutkenscommented, Dec 6, 2021

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.

2reactions
brc-ddcommented, Dec 6, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found