Replies: 1 comment
-
If anyone gets this error, the workaround is to set the route ID: import { type RouteConfig, index, route, prefix } from '@react-router/dev/routes';
export default [
index('./routes/index.tsx'),
...prefix('en/', [
index('routes/home.tsx', { id: 'en-home-index' }),
route('sign-in', 'routes/signIn.tsx', { id: 'en-sign-in' }),
]),
...prefix('sk/', [
index('routes/home.tsx', { id: 'sk-home-index' }),
route('prihlasit-sa', 'routes/signIn.tsx', { id: 'sk-sign-in' }),
]),
] satisfies RouteConfig; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a page that supports multiple languages and I wanted to have also translated routes. I tried:
and also
but both "solutions" throws error on
start
:Why is this a problem? Is there any workaround how to solve it? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions