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

Cannot compile with multiple @apply - Maximum call stack size exceeded #6376

Closed
senordelaflor opened this issue Dec 10, 2021 · 1 comment
Closed

Comments

@senordelaflor
Copy link

What version of Tailwind CSS are you using?

3.0.0

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

Postcss 8.4.4, webpack 5.36.1, Sass

What version of Node.js are you using?

v12.22.1

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/i3Ja7ZD819?file=css

Describe your issue

Tailwind cannot compile and hangs when multiple @apply are used. This is happening in both SCSS and CSS. This is the error:

CleanShot 2021-12-10 at 12 42 54@2x

I can see that this is also happening in play.tailwindcss.com

Thanks so much for looking into this. We've been loving Tailwindind and can't wait to use v3!

@RobinMalfait
Copy link
Member

RobinMalfait commented Dec 10, 2021

Hey! Thank you for your bug report!
Much appreciated! 🙏

You have a circular dependency:

.button.hidden {
  @apply hidden;
}

You are trying to apply hidden in a selector that uses hidden.

I made a PR to detect this and will be available in the next version: #6365

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

No branches or pull requests

2 participants