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.

tailwindcss/nesting used with postcss-nesting breaks some postcss plugins

See original GitHub issue

What version of Tailwind CSS are you using?

v3.0.17

What build tool (or framework if it abstracts the build tool) are you using?

vite@2.7.13

What version of Node.js are you using?

For example: v17.1.0

What operating system are you using?

MacOS

Describe your issue

tailwindcss/nesting used with postcss-nesting breaks some postcss plugins. In this example vite config cssHasPseudo is not working. Also another plugin that is not working is postcss-mixins

import tailwindcss from 'tailwindcss'
import tailwindcssNesting from 'tailwindcss/nesting'
import autoprefixer from 'autoprefixer'
import postcssImport from 'postcss-import'
import postcssNesting from 'postcss-nesting'
import cssHasPseudo from 'css-has-pseudo'
import postcssCustomMedia from 'postcss-custom-media'

export default {
    css: {
        postcss: {
            plugins: [postcssImport, tailwindcssNesting(postcssNesting), postcssCustomMedia, cssHasPseudo, tailwindcss, autoprefixer]
        }
    }
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
thecrypticacecommented, Feb 7, 2022

Just to follow up here — I tracked down the issue last week and we are working with PostCSS on a fix. Thanks!

0reactions
thecrypticacecommented, Apr 14, 2022

Could you open this as a separate issue please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using with Preprocessors - Tailwind CSS
To add support for nested declarations, we recommend our bundled tailwindcss/nesting plugin, which is a PostCSS plugin that wraps postcss-nested or postcss- ...
Read more >
TailwindCSS nesting not working with postCSS config
Nested @tailwind rules were detected, but are not supported. any idea how I can get the tailwind to work as expected with the...
Read more >
postcss/postcss - Gitter
What is the minimum recommended NodeJS compatibility for PostCSS plugins? v12? ... tailwindcss/nesting(postcss-nesting) line in a way that that doesn't use ...
Read more >
Writing Complex Classes Using @apply and Postcss-Nesting ...
Since TailwindCSS is a PostCSS plugin, we can use it with Sass, Less, Stylus or other preprocessors just like any other PostCSS plugin...
Read more >
postcss-multiple-tailwind | The AI Search Engine You Control
postcss/postcss-nested. PostCSS plugin to unwrap nested rules like how Sass does it. ... How to use postcss RTL in nuxt 3 except of...
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