Skip to content
Discussion options

You must be logged in to vote

Routes for /foo and /bar don't exist

Yup, this is the heart of your problem. In your case you actually don't want designated partial routes as you also want them to be accessible as normal routes. To solve this:

  1. Make proper routes of your partial routes by moving them out of the /partials folder.
  • ./routes/partials/bar.tsx -> ./routes/bar.tsx
  • ./routes/partials/foo.tsx -> ./routes/foo.tsx
  1. Remove the route config from both of these routes where it's currently configured to ignore the _app template:
- export const config: RouteConfig = {
-   skipAppWrapper: true,
-   skipInheritedLayouts: true,
- };
  1. (EDIT): Remove the <Partial name="main"> from both routes as this is already declared…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pddg
Comment options

Answer selected by pddg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants