-
Notifications
You must be signed in to change notification settings - Fork 183
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
[6.13] Duplicate plugins being loaded from tailwind.config.ts
#949
Comments
Thanks for opening an issue. I have a very similar project to this, and I noticed minor issues in the project setup..
Let me know how that goes. 😄 |
Sadly, it won't work. Comparing to 6.12.2 this line is also missing:
|
I'll need to know what you did and what issue came up; the issue was fixed with the suggestions I provided on my end! Could you update the Stackblitz?
This is intentional; you can access the viewer in devtools. The URL is only logged when devtools are disabled or in Nuxt 2. |
However in same configuration that line is outputed in 6.12.2, so I suspect, unless something changed between 6.12.2 and 6.13.1, tailwind may noy loaded properly. I'll update that stackblitz later and post a new one here. |
Please take a look: https://stackblitz.com/edit/github-9r8kjuz1-n2rzo1ux Same code but 6.12.2 still works: https://stackblitz.com/edit/github-9r8kjuz1-ny3t4uah |
tailwind.config.ts
support
Ah OK I found the issue.. It seems that your resolvedConfig loads two of the primeui plugins because of this: https://github.com/nuxt/ui/blob/f2d387622ae6bc8781d7893b74595f4030f14a78/src/tailwind.ts#L82 I think I was aware of this code while working on 6.13, but didn't run into issues in my testing. I should provide a fix within this module in the next patch. Till then please stay on 6.12 🙏 sorry about this! |
tailwind.config.ts
supporttailwind.config.ts
No worries, thanks for debugging. Glad to find out what's wrong :) |
Environment
Darwin
v20.18.1
3.15.4
3.21.1
2.10.4
[email protected]
-
app
,modules
,qrcode
,nitro
,components
,extends
,ssr
,srcDir
,postcss
,css
,primevue
,ui
,devtools
,typescript
,image
,compatibilityDate
@primevue/[email protected]
,@nuxt/[email protected]
,@nuxt/[email protected]
,@vueuse/[email protected]
,@nuxt/[email protected]
,@pinia/[email protected]
,pinia-plugin-persistedstate/[email protected]
,[email protected]
,@nuxtjs/[email protected]
-
Reproduction
6.12.2 Works: https://stackblitz.com/edit/github-9r8kjuz1
6.13.1 Doesn't work: https://stackblitz.com/edit/github-9r8kjuz1-tuaijd5l
Describe the bug
I use
tailwindcss-primeui
, after upgrading to 6.13.1, the nuxt postcss warns ambigious nameanimate-duration-[450ms]
and failed to process it.Change the dep from 6.12.2 to 6.13.1 makes nuxt failed to process primevue tailwind utilities.
6.12.2 log:
6.13.1 log:
The text was updated successfully, but these errors were encountered: