[Bug?]: Type error when adding Tailwind Vite plugin
Duplicates
- [x] I have searched the existing issues
Latest version
- [x] I have tested the latest version
Current behavior 😯
I get this type error when adding the tailwindcss() Vite plugin using the default project setup (I used Deno though, but probably shouldn't matter).
Expected behavior 🤔
No response
Steps to reproduce 🕹
Steps:
- Create new project with the recommended Deno setup:
deno run -A npm:create-solid. Use the solid start basic template with Typescript (keep in mind that the official setup hangs after it finishes, requiring Ctrl+Z to exit; this is probably also a bug). deno add --allow-scripts npm:tailwindcss- Add this to the config object in
app.config.ts:
vite: {
plugins: [
tailwindcss(),
],
},
Context 🔦
No response
Your environment 🌎
I just tested this our on my machine and seemed like it worked. It could be deno tho. Could you provide reproduction steps?
I just tested this our on my machine and seemed like it worked. It could be deno tho. Could you provide reproduction steps?
@brenelz added steps to reproduce above
I am having the exact same issue. It seems like the vite version is too new. I am using bun.
I tried it again with NPM, and it has the same issue. I eventually got it working with pnpm, which is not ideal.