Open HADB opened 5 days ago
My nuxt.config.ts
:
...
tailwindcss: {
cssPath: ['~/assets/css/tailwind.css', { injectPosition: 'last' }],
configPath: 'tailwind.config.ts',
},
...
I found that everything goes well if I remove configPath: 'tailwind.config.ts',
from nuxt.config.ts
.
Maybe there are some breaking changes for this redundant config.
Thanks for raising this. I see the repository on your profile, and I'll try to investigate further.
You don't need to provide configPath if it is already tailwind.config (and maybe the path resolution behaves odd without path specifier eg relative or project dir root). Still, it shouldn't cause issues between versions.
From the traceback, I'm thinking if it's this line - https://github.com/nuxt-modules/tailwindcss/blob/main/src/runtime/merger.js#L34
Again, this wasn't changed between 6.12.1 and 6.12.2 but I notice that the if condition rather belongs in the earlier block (how did we miss that 😄). Let me continue investigating
Environment
Build Modules: -
Reproduction
No response
Describe the bug
Build error after upgrade to
6.12.2
from6.12.1
Additional context
No response
Logs
No response