Skip to content

Failed to load url ~/entry-server.tsx (trying to find .tsx instead of .jsx) #73

Description

@karimmaassen

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

Activity

  1. ryansolid commented on Aug 12, 2026

    @ryansolid
    Contributor

    Retested this against current main (5833ad1, Create-Solid v0.8.1 built locally) and the reported breakage no longer reproduces. The TS→JS conversion path was rewritten in #82 (sucrase-based transform), and the v2 templates have since moved to @solidjs/start 2.0.0 stable, which resolves .jsx entries correctly.

    What I verified:

    SolidStart v2 with-tailwindcss scaffolded with JavaScript (the setup from this report):

    • All source files emitted as .jsx (entry-server.jsx, entry-client.jsx, app.jsx, routes), jsconfig.json generated, and zero lingering .tsx references anywhere in the project.
    • pnpm install (@solidjs/start 2.0.0, vite 8.1.4) then vite dev: server boots cleanly and GET / returns 200 with server-rendered HTML — no Failed to load url ~/entry-server.tsx error.

    Solid 2.0 (beta) basic template scaffolded with JavaScript (shares the same conversion path):

    • vite dev serves the app shell and routes, all .jsx modules compile, and vite build (client + SSR environments) completes without errors.

    Closing as fixed by the conversion rewrite in #82. If you still hit this with a fresh npm create solid@latest, please comment and we'll reopen.

  2. karimmaassen commented on Aug 12, 2026

    @karimmaassen
    Author

    Fixed on my side as well. Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions