-
Notifications
You must be signed in to change notification settings - Fork 4.5k
@tailwindcss/vite Svelte: Cannot convert undefined or null to object #18003
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
Comments
Consider running the command |
@antipoly You'll have to send us a reproduction to investigate, if I run α dev/throwaway npx sv create
Need to install the following packages:
[email protected]
Ok to proceed? (y)
┌ Welcome to the Svelte CLI! (v0.8.3)
│
◇ Where would you like your project to be created?
│ testdbgsvl
│
◇ Which template would you like?
│ SvelteKit minimal
│
◇ Add type checking with TypeScript?
│ Yes, using TypeScript syntax
│
◆ Project created
│
◇ What would you like to add to your project? (use arrow keys / space bar)
│ tailwindcss
│
◇ Which plugins would you like to add?
│ none
│
◆ Successfully setup add-ons
│
◇ Which package manager do you want to install dependencies with?
│ pnpm
│
◆ Successfully installed dependencies
│
◇ Project next steps ─────────────────────────────────────────────────────╮
│ │
│ 1: cd testdbgsvl │
│ 2: git init && git add -A && git commit -m "Initial commit" (optional) │
│ 3: pnpm run dev --open │
│ │
│ To close the dev server, hit Ctrl-C │
│ │
│ Stuck? Visit us at https://svelte.dev/chat │
│ │
├──────────────────────────────────────────────────────────────────────────╯
│
└ You're all set!
α dev/throwaway cd testdbgsvl/
α throwaway/testdbgsvl pnpm run dev --open
> [email protected] dev /Users/philipp/dev/throwaway/testdbgsvl
> vite dev --open
1:48:26 PM [vite] (client) Forced re-optimization of dependencies
VITE v6.3.5 ready in 805 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
^C% |
Thank you. For anyone else: one of 2 things probably solved it:
|
Glad you could figure it out! Going to close the issue then if it's resolved. 👍 |
What version of Tailwind CSS are you using?
v4.0.0
What build tool (or framework if it abstracts the build tool) are you using?
Vite 6.2.6
What version of Node.js are you using?
v22.15.0
What operating system are you using?
Windows
I created a new svelte project using
npx sv create
, selected tailwind as the only option.The error in the title comes up when I run the server.
After tracing the minified code, the error seems to be from:
/packages/@tailwindcss-vite/src/index.ts:275
Scanner is an import from @tailwind/oxide
Don't know where to go from here, thanks
The text was updated successfully, but these errors were encountered: