-
Notifications
You must be signed in to change notification settings - Fork 18
Description
It seems something isn't working properly when doing the tsx > jsx transpiling.
I'm running a clean Solid Start project. I created a new Solid-Start project with pnpm create solid. It created a 2.0 alpha project. It's looking for entry-server.tsx (typescript). I set the project as using .jsx instead.
{
"name": "example-with-tailwindcss",
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"start": "vite start",
"preview": "vite preview"
},
"dependencies": {
"@solidjs/router": "^0.15.0",
"@solidjs/start": "2.0.0-alpha.2",
"solid-js": "^1.9.5",
"vite": "^7.0.0",
"nitro": "3.0.1-alpha.2"
},
"devDependencies": {
"@tailwindcss/vite": "^4.0.7",
"tailwindcss": "^4.0.7"
},
"engines": { "node": ">=22" }
} The create cli in fact does give me the .jsx-files. However, running the project trips Vite up, wanting entry-server.tsx, instead of entry-server.jsx (which is in my project). Running npm run dev, gives me an error:
Error: Failed to load url ~/entry-server.tsx (resolved id: /Users/.../src/entry-server.tsx). Does the file exist?
Expected behavior
It should try and locate entry-server.jsx instead of entry-server.tsx
Related to solidjs/solid-start#2095