remix: V2 routing doesn't detect new routes
What version of Remix are you using?
v1.11.1
Are all your remix dependencies & dev-dependencies using the same version?
- Yes
Steps to Reproduce
npx create-remixand go through all the steps.- add
future: {v2_routeConvention: true,}toremix.config.js. npm run dev- Create
app/routes/test.tsxand a basic export default component. - Visit
localhost:3000/test
Expected Behavior
See the test route.
Actual Behavior
404 Not Found thrown.
- If we restart the dev server manually, route renders correctly.
- Untoggle v2_routeConvention, route renders correctly.
- Edits to existing route files work as expected.
sample repo: https://github.com/xHomu/remix-v2-routes-new2/blob/main/app/routes/test.tsx
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (6 by maintainers)
@mcansh Can confirm that new routes are now working in windows with v2 routing flag on!
@machour seems like still unresolved on v1.16:
this is despite remix routes picking up the file:
Same with me using v1.15.0 and Windows, still can’t detect new routes.
yep, fast glob will return posix style paths
/instead of windows\\- will go out in the next release. not entirely sure why the first boot of the app works though…