Skip to content

fix: remove auth0Routes() as it is incompatible with React Router file-based route config - #6

Merged
yogeshchoudhary147 merged 4 commits into
mainfrom
fix/remove-auth0-routes
Aug 18, 2026
Merged

fix: remove auth0Routes() as it is incompatible with React Router file-based route config#6
yogeshchoudhary147 merged 4 commits into
mainfrom
fix/remove-auth0-routes

Conversation

@yogeshchoudhary147

Copy link
Copy Markdown
Contributor

Problem

auth0Routes() returned inline route objects with loader/action functions. React Router's RouteConfig only accepts { path, file } entries at build time and rejects anything else with:

Invalid key: Expected 'file' but received undefined

Fix

  • Removed auth0Routes() from handlers.ts and its exports from server/index.ts
  • Replaced the routes/index.ts re-export with a comment documenting the correct pattern using a splat route file (auth.$.tsx) with handleAuth

@yogeshchoudhary147 yogeshchoudhary147 changed the title remove auth0Routes() — incompatible with React Router file-based route config fix: remove auth0Routes() as it is incompatible with React Router file-based route config Aug 17, 2026
Comment thread src/routes/index.ts
Comment thread src/routes/index.ts
@yogeshchoudhary147
yogeshchoudhary147 merged commit a436857 into main Aug 18, 2026
4 checks passed
@yogeshchoudhary147
yogeshchoudhary147 deleted the fix/remove-auth0-routes branch August 18, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants