#Cloudflare dynamic route -ERROR [plugin browser-route-module]

1 messages · Page 1 of 1 (latest)

unborn condor
#

Having the following simple dynamic route structure:

app
  routes
    $locale
      index.tsx
    _index.tsx

when deployed to Cloudflare Pages, it produces the following error

10:25:03.050    Building Remix app in production mode...
10:25:03.795    
10:25:03.797    ✘ [ERROR] [plugin browser-route-module] ENOENT: no such file or directory, open '/opt/buildhome/repo/app/outes/$locale/index.tsx'
10:25:03.798    
10:25:03.798    
10:25:03.798    Build failed with 1 error:
10:25:03.798    error: ENOENT: no such file or directory, open '/opt/buildhome/repo/app/outes/$locale/index.tsx'
10:25:03.800    Error
10:25:03.801        at Object.onCompileFailure (/opt/buildhome/repo/node_modules/@remix-run/dev/dist/cli/commands.js:180:13)
10:25:03.802        at Object.compile (/opt/buildhome/repo/node_modules/@remix-run/dev/dist/compiler/remixCompiler.js:34:134)
10:25:03.802        at processTicksAndRejections (node:internal/process/task_queues:96:5)
10:25:03.803        at async Object.build (/opt/buildhome/repo/node_modules/@remix-run/dev/dist/compiler/build.js:33:3)
10:25:03.803        at async Object.build (/opt/buildhome/repo/node_modules/@remix-run/dev/dist/cli/commands.js:175:3)
10:25:03.803        at async Object.run (/opt/buildhome/repo/node_modules/@remix-run/dev/dist/cli/run.js:449:7)

After a bit of research, did not find anything related.

Any input is appreciated 🙏

unborn condor
#

There seems to be a typo/missing r?

/opt/buildhome/repo/app/outes/$locale/index.tsx
instead of
/opt/buildhome/repo/app/routes/$locale/index.tsx