Skip to content

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

@karimmaassen

Description

@karimmaassen

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" } }

However, 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

Its should try and locate entry-server.jsx instead of .tsx

Related to solidjs/solid-start#2095

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