remix: 1.12 `ENOENT: no such file or directory` referencing `outes` instead of `routes`
What version of Remix are you using?
1.12.0
Are all your remix dependencies & dev-dependencies using the same version?
- Yes
Steps to Reproduce
- Create a Remix instance selecting the “Remix App Server” option
- Run
remix dev
The following error occurs;
TypeError: Cannot read properties of undefined (reading 'remixRequestHandlerPath')
at requestHandler (/Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/@remix-run+server-runtime@1.12.0/node_modules/@remix-run/server-runtime/dist/server.js:38:94)
at /Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/@remix-run+express@1.12.0_express@4.18.2/node_modules/@remix-run/express/dist/server.js:39:28
at /Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/@remix-run+serve@1.12.0/node_modules/@remix-run/serve/dist/index.js:47:7
at Layer.handle [as handle_request] (/Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:144:13)
at next (/Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:140:7)
at next (/Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:140:7)
at next (/Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:140:7)
at next (/Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:140:7)
at next (/Users/sean/sockthedev/code/hivemind-tales/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:140:7)
Expected Behavior
The dev server executes as before.
Actual Behavior
An error occurs on dev server load.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 15
- Comments: 23 (4 by maintainers)
Commits related to this issue
- patch for build failure with v2 routes issue https://github.com/remix-run/remix/issues/5322 patch from https://github.com/remix-run/remix/issues/5324#issuecomment-1410212098 — committed to itsMapleLeaf/charge-worlds by itsMapleLeaf a year ago
- [remix] Update `@remix-run/dev` dep to v1.13.0 There were some fixes to thier new v2 filesystem routing that this will help with. Related to https://github.com/remix-run/remix/issues/5322 and https:... — committed to vercel/vercel by TooTallNate a year ago
- [remix] Update `@remix-run/dev` dep to v1.13.0 (#9519) There were some fixes to thier new v2 filesystem routing that this will help with. Related to https://github.com/remix-run/remix/issues/5322 ... — committed to vercel/vercel by TooTallNate a year ago
I had two dev dependencies which I forgot to update. This fixed the issue.
I can confirm the same behaviour. It trims the first word of our route,
npx remix routesshows:<Route path="ndex" file="outes/index.tsx" />I think the first error is a symptom of the issue when running the dev server.
Is
related to
or are these two separate issues?
I have also raised the
outesissue (https://github.com/remix-run/remix/issues/5324) and have pushed a fix (https://github.com/remix-run/remix/pull/5327). Here’s a workaround using patch-package.I’m not seeing this problem on my side, having just created a new project using
yarn create remixand picking all the default options.Could you detail the exact steps you’re using to create the app?