- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5
Closed
Description
This template doesn't run on fresh clone. I have another app which is currently experiencing difficulties deploying to Netlify as well.
What I did
# 1. clone template
# 2. install dependencies
# 3. run netlify serve
git clone git@github.com:netlify/react-router-template.git
cd react-router-template
npm i 
netlify serveActual behavior
An error message comes up:
{"errorMessage":"Cannot find module '/home/munthe/web-dev/rr-netlify/.netlify/functions-serve/.unzipped/handler/node_modules/@react-router/node/dist/index.mjs' imported from /home/munthe/web-dev/rr-netlify/.netlify/functions-serve/.unzipped/handler/.netlify/functions-internal/handler/index.mjs","errorType":"Error","trace":["Error: Cannot find module '/home/munthe/web-dev/rr-netlify/.netlify/functions-serve/.unzipped/handler/node_modules/@react-router/node/dist/index.mjs' imported from /home/munthe/web-dev/rr-netlify/.netlify/functions-serve/.unzipped/handler/.netlify/functions-internal/handler/index.mjs"," at finalizeResolution (node:internal/modules/esm/resolve:275:11)"," at moduleResolve (node:internal/modules/esm/resolve:860:10)"," at defaultResolve (node:internal/modules/esm/resolve:984:11)"," at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:780:12)"," at ModuleLoader.#cachedDefaultResolve (node:internal/modules/esm/loader:704:25)"," at ModuleLoader.resolve (node:internal/modules/esm/loader:687:38)"," at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:305:38)"," at ModuleJob._link (node:internal/modules/esm/module_job:175:49)"]}
Expected
It should serve the app like normal.
I think this is an issue with Netlify's Vite plugin, but I don't know enough to point to any direction
markuslewin and rago4
Metadata
Metadata
Assignees
Labels
No labels