Skip to content

[JIT] RangeError: Maximum call stack size exceeded #321

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

Closed
mornir opened this issue Mar 27, 2021 · 1 comment
Closed

[JIT] RangeError: Maximum call stack size exceeded #321

mornir opened this issue Mar 27, 2021 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@mornir
Copy link

mornir commented Mar 27, 2021

Version

@nuxtjs/tailwindcss: v4.0.2
nuxt: v2.15.3

Reproduction Link

https://github.com/mornir/movies-web/tree/dev

Steps to reproduce

  1. yarn install
  2. yarn dev

What is happening?

When activating JIT, the dev and build process errors out when reading the tailwind.css file:
https://github.com/mornir/movies-web/blob/dev/assets/css/tailwind.css

I already tried updating autoprefixer to its latest version, as suggested here:
tailwindlabs/tailwindcss-jit#29

Here's the stack trace:

 ERROR  Failed to compile with 1 errors


 ERROR  in ./assets/css/tailwind.css

Module build failed (from ./node_modules/@nuxt/postcss8/node_modules/postcss-loader/dist/cjs.js):
RangeError: Maximum call stack size exceeded
    at candidatePermutations (C:\projects\movies-web\node_modules\@tailwindcss\jit\src\lib\generateRules.js:19:32)
    at candidatePermutations.next (<anonymous>)
    at candidatePermutations (C:\projects\movies-web\node_modules\@tailwindcss\jit\src\lib\generateRules.js:41:10)
    at candidatePermutations.next (<anonymous>)
    at candidatePermutations (C:\projects\movies-web\node_modules\@tailwindcss\jit\src\lib\generateRules.js:41:10)
    at candidatePermutations.next (<anonymous>)
    at candidatePermutations (C:\projects\movies-web\node_modules\@tailwindcss\jit\src\lib\generateRules.js:41:10)
    at candidatePermutations.next (<anonymous>)
    at candidatePermutations (C:\projects\movies-web\node_modules\@tailwindcss\jit\src\lib\generateRules.js:41:10)
    at candidatePermutations.next (<anonymous>)
    at candidatePermutations (C:\projects\movies-web\node_modules\@tailwindcss\jit\src\lib\generateRules.js:41:10)
    at candidatePermutations.next (<anonymous>)
    at candidatePermutations (C:\projects\movies-web\node_modules\@tailwindcss\jit\src\lib\generateRules.js:41:10)
    at candidatePermutations.next (<anonymous>)
    at candidatePermutations (C:\projects\movies-web\node_modules\@tailwindcss\jit\src\lib\generateRules.js:41:10)
    at candidatePermutations.next (<anonymous>)

 @ ./assets/css/tailwind.css 4:14-221 15:3-20:5 16:22-229     
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
@mornir mornir added the bug Something isn't working label Mar 27, 2021
@atinux atinux added the help wanted Extra attention is needed label Apr 1, 2021
@mornir
Copy link
Author

mornir commented Apr 4, 2021

So I upgraded all my deps to their latest version and the problem is gone. Not sure what the problem was, but hey it works😃
image

@mornir mornir closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants