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

Most upvoted comments

I had two dev dependencies which I forgot to update. This fixed the issue.

yarn add -D @remix-run/dev
yarn add -D @remix-run/eslint-config

I can confirm the same behaviour. It trims the first word of our route, npx remix routes shows:

<Route path="ndex" file="outes/index.tsx" />

or are these two separate issues?

I think the first error is a symptom of the issue when running the dev server.

Is

TypeError: Cannot read properties of undefined (reading 'remixRequestHandlerPath')

related to

error: ENOENT: no such file or directory, open '/Users/sean/sockthedev/code/hivemind-tales/app/outes/_index/index.tsx'

or are these two separate issues?

I have also raised the outes issue (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 remix and picking all the default options.

Could you detail the exact steps you’re using to create the app?