Skip to content
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

[Feature]: Tailwind 4.0 Beta and running without @nuxtjs/tailwindcss #979

Open
2 tasks
marpe opened this issue Dec 26, 2024 · 3 comments · May be fixed by #1000
Open
2 tasks

[Feature]: Tailwind 4.0 Beta and running without @nuxtjs/tailwindcss #979

marpe opened this issue Dec 26, 2024 · 3 comments · May be fixed by #1000

Comments

@marpe
Copy link

marpe commented Dec 26, 2024

Describe the feature

I wanted to test out the tailwind 4.0 beta by using their @tailwindcss/vite plugin instead of using @nuxtjs/tailwindcss but shadcn-vue is preventing nuxt from starting:

 ERROR  Cannot start nuxt:  Could not load @nuxtjs/tailwindcss. Is it installed?                                  4:39:09 AM

    at loadNuxtModuleInstance (/C:/dev/kotoba/node_modules/.pnpm/@nuxt+kit@3.15.0_magicast@0.3.5_rollup@4.29.1/node_modules/@nuxt/kit/dist/index.mjs:2470:11)
    at async installModule (/C:/dev/kotoba/node_modules/.pnpm/@nuxt+kit@3.15.0_magicast@0.3.5_rollup@4.29.1/node_modules/@nuxt/kit/dist/index.mjs:2388:67)
    at async setup (/C:/dev/kotoba/node_modules/.pnpm/shadcn-nuxt@0.11.3_magicast@0.3.5_rollup@4.29.1/node_modules/shadcn-nuxt/dist/module.mjs:45:5)
    at async normalizedModule (/C:/dev/kotoba/node_modules/.pnpm/@nuxt+kit@3.15.0_magicast@0.3.5_rollup@4.29.1/node_modules/@nuxt/kit/dist/index.mjs:2139:17)
    at async installModule (/C:/dev/kotoba/node_modules/.pnpm/@nuxt+kit@3.15.0_magicast@0.3.5_rollup@4.29.1/node_modules/@nuxt/kit/dist/index.mjs:2396:95)
    at async initNuxt (/C:/dev/kotoba/node_modules/.pnpm/nuxt@3.15.0_@parcel+watcher@2.5.0_@types+node@22.10.2_db0@0.2.1_drizzle-orm@0.38.3_pg@8.13.1__yhgjblmr6eemhjawogsloaorsa/node_modules/nuxt/dist/index.mjs:5275:5)
    at async NuxtDevServer._load (/C:/Users/marpe/AppData/Local/pnpm-cache/dlx/dyrtvgyweevirrawizpndprwvi/19400ea7a27-d75ec/node_modules/.pnpm/nuxi@3.17.2/node_modules/nuxi/dist/chunks/dev2.mjs:1888:5)
    at async NuxtDevServer.load (/C:/Users/marpe/AppData/Local/pnpm-cache/dlx/dyrtvgyweevirrawizpndprwvi/19400ea7a27-d75ec/node_modules/.pnpm/nuxi@3.17.2/node_modules/nuxi/dist/chunks/dev2.mjs:1822:7)
    at async NuxtDevServer.init (/C:/Users/marpe/AppData/Local/pnpm-cache/dlx/dyrtvgyweevirrawizpndprwvi/19400ea7a27-d75ec/node_modules/.pnpm/nuxi@3.17.2/node_modules/nuxi/dist/chunks/dev2.mjs:1817:5)
    at async Object.run (/C:/Users/marpe/AppData/Local/pnpm-cache/dlx/dyrtvgyweevirrawizpndprwvi/19400ea7a27-d75ec/node_modules/.pnpm/nuxi@3.17.2/node_modules/nuxi/dist/chunks/dev-child.mjs:110:5)

Would it be possible to remove this dependency or work around it?

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
@chz
Copy link

chz commented Dec 27, 2024

+1

1 similar comment
@kknono
Copy link

kknono commented Jan 4, 2025

+1

@ManUtopiK
Copy link

Also, I use shadcn-vue with unocss, and it's annoying to load tailwindcss as I don't need it.
Maybe adding a module option to enable/disable at this line could do the trick ?

@qwerzl qwerzl linked a pull request Jan 15, 2025 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants