You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
I have the following line of code in my codebase: [^${char}\\s][^${char}]*[^${char}\\s] (it’s used to build a regular expression). When I remove it from my codebase, @tailwindcss/jit works fine. When I add it back Tailwind CSS fails to build with:
RangeError: Maximum call stack size exceeded
at candidatePermutations.next (<anonymous>)
at candidatePermutations.next (<anonymous>)
at candidatePermutations.next (<anonymous>)
at candidatePermutations.next (<anonymous>)
at candidatePermutations.next (<anonymous>)
at candidatePermutations.next (<anonymous>)
at candidatePermutations.next (<anonymous>)
I reproduced this issue by taking the implementation of candidatePermutations() in my node_modules folder and running it standalone:
Should be fixed in v0.1.14! Used a slightly different solution, basically only worry about the square bracket stuff on the first pass when looking at the full string, since we don't support arbitrary values in the middle of class candidates anyways (like bg-[#126546]-foo-bar isn't valid) 👍
What version of @tailwindcss/jit are you using?
v0.1.13
What version of Node.js are you using?
v14.15.0
What browser are you using?
n/a
What operating system are you using?
macOS
Reproduction repository
n/a
I have the following line of code in my codebase:
[^${char}\\s][^${char}]*[^${char}\\s]
(it’s used to build a regular expression). When I remove it from my codebase,@tailwindcss/jit
works fine. When I add it back Tailwind CSS fails to build with:I reproduced this issue by taking the implementation of
candidatePermutations()
in mynode_modules
folder and running it standalone:(Babel playground)
The text was updated successfully, but these errors were encountered: