astro #15768
Replies: 3 comments 2 replies
-
Same for solid-start. It shows type error but works fine. |
Beta Was this translation helpful? Give feedback.
-
Same for tailwindcss plugin. Is there a fix to this? |
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue after turning my Vite + TailwindCSS website into an Astro project. In my case, even after removing Vite as a direct dependency, NPM kept two versions of Vite installed (6.x, used by > npm why vite
[email protected]
node_modules/astro/node_modules/vite
vite@"^6.2.0" from [email protected]
node_modules/astro
astro@"^5.4.3" from [email protected]
packages/website
[email protected]
node_modules/website
workspace packages/website from the root project
[email protected] peer
node_modules/vite
peer vite@"^5.2.0 || ^6" from @tailwindcss/[email protected]
node_modules/@tailwindcss/vite
dev @tailwindcss/vite@"^4.0.12" from [email protected]
packages/website
[email protected]
node_modules/website
workspace packages/website from the root project
peerOptional vite@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" from [email protected]
node_modules/vitefu
vitefu@"^1.0.6" from [email protected]
node_modules/astro
astro@"^5.4.3" from [email protected]
packages/website
[email protected]
node_modules/website
workspace packages/website from the root project To fix it, I removed all the top-level packages that resolved to > npm why vite
[email protected]
node_modules/vite
peer vite@"^5.2.0 || ^6" from @tailwindcss/[email protected]
node_modules/@tailwindcss/vite
dev @tailwindcss/vite@"^4.0.12" from [email protected]
packages/website
[email protected]
node_modules/website
workspace packages/website from the root project
vite@"^6.2.0" from [email protected]
node_modules/astro
astro@"^5.4.3" from [email protected]
packages/website
[email protected]
node_modules/website
workspace packages/website from the root project
peerOptional vite@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" from [email protected]
node_modules/vitefu
vitefu@"^1.0.6" from [email protected]
node_modules/astro
astro@"^5.4.3" from [email protected]
packages/website
[email protected]
node_modules/website
workspace packages/website from the root project I hope my troubleshooting will help you. Cheers. |
Beta Was this translation helpful? Give feedback.
-
following the docs https://tailwindcss.com/docs/installation/framework-guides/astro (I am not including the tailwind astro plugin)
its working in the sense of I can use it but there is an error in the config.mjs vite plugins
Beta Was this translation helpful? Give feedback.
All reactions