tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

Dynamic nested groups names webpack error

Open bstivenprz opened this issue 3 years ago • 1 comments

What version of Tailwind CSS are you using?

I'm using the latest v3.2.4

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

I'm using Next.js (v13.1.1) with Webpack (v5.74.0)

What version of Node.js are you using?

v18.12.1

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

CodeSandbox bug repoduction

Describe your issue

I tried to assign names to groups by props dynamically on runtime but it failed to compile with this message:

./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[11].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[11].use[2]!./styles/globals.css TypeError: Cannot read properties of undefined (reading '5') at resolveMatches.next (<anonymous>) at Function.from (<anonymous>) at runMicrotasks (<anonymous>)

When i concatenate the id prop to a group with + operator this error don't come up but nested group doesn't work. I tried every plugin out there but nothing worked naming groups dynamically by props.

bstivenprz avatar Jan 07 '23 11:01 bstivenprz

Duplicated of #10266

bstivenprz avatar Jan 07 '23 11:01 bstivenprz