Skip to content

Javascript template can not find modules during run dev #133

@hseher

Description

@hseher

Today I installed the current version of the javascript template

npx create-react-router@latest --template remix-run/react-router-templates/javascript

All dependencies are installed. After that I can run dev mode

npm run dev

When I load the page http://localhost:5173/ in my browser I get these three errors on my windows 11 machine running node v22.16.0

Could not resolve module for file: node_modules\@react-router\dev\dist\config\defaults\entry.client.tsx
Could not resolve module for file: c:\projectpath\router-js\app\root.jsx
Could not resolve module for file: c:\projectpath\router-js\app\routes\home.jsx

These files all exist in the project path

Switching between server side rendering true and false does not change anything.

I can not figure out why it is not working. Any ideas?

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