astro #15768
Replies: 4 comments 4 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.
-
I also ran into this error. In my case the conflict was between
In my case I just decided to get rid of the dev tools, since I don't need them anyway (I've got a fairly simple and uncomplicated project). Here are my deps for reference (with devtools already removed): {
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/solid-js": "^5.0.8",
"@iconify-json/simple-icons": "^1.2.31",
"accessible-astro-components": "^4.1.0",
"astro": "^5.6.1",
"astro-icon": "^1.1.5",
"solid-js": "^1.9.5",
"tailwindcss": "^4.1.3",
"typescript": "^5.8.3"
},
"devDependencies": {
"@iconify-icon/solid": "^2.3.0",
"@iconify-json/solar": "^1.2.2",
"@rollup/plugin-yaml": "^4.1.2",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16",
"@tailwindcss/vite": "^4.1.4",
"@typescript-eslint/parser": "^8.29.1",
"eslint": "^9.24.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"husky": "^9.1.7",
"lint-staged": "^15.5.0",
"prettier": "3.5.3",
"prettier-plugin-astro": "0.14.1"
}
} |
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