#Remix Routing doesn't work at all

1 messages · Page 1 of 1 (latest)

iron crown
#

I've always had a hard time with routing my pages, I have followed the remix docs, and it doesn't work at all, for example...when i create a file dashboard/$dashboardId.tsx a corresponding route should be created as: localhost:5173/dashboard/123, but it doesn't get created.

So I have resorted to . routes, like auth.login.tsx means localhost:5173/auth/login, but this too doesn't work for dynamic pages.

#

for example these are my routes right now, and if i do npx remix routes, this is the output:

  <Route file="root.tsx">
    <Route path="auth/signup" file="routes/auth.signup.tsx" />
    <Route path="auth/login" file="routes/auth.login.tsx" />
    <Route path="dashboard" file="routes/dashboard/index.tsx">
      <Route path=":dashboardId" file="routes/dashboard.$dashboardId.tsx" />
    </Route>
    <Route index file="routes/_index.tsx" />
    <Route path="chat" file="routes/chat/index.tsx" />
  </Route>
</Routes>```

as you can see, there is no `dashboard/dummy` and my `dashboard.$dashboardId.tsx` has a path as just `:dashboardId`

what is going on
urban nebula
#

if you use flat routes you shoudn't use folders

#

so dashboard.dummy.tsx would be fielname

#

for this sample

supple drum
#

What Remix or React Router version?

#

If you're using RR7, how does your routes.ts look like?

iron crown
urban nebula
#

no if you need both you need to do custom routes.ts

iron crown
urban nebula
#

if you just starting better to start with rr7 instead of remix

iron crown
#

why

#

aren't they merged now

urban nebula
#

no rr7 is new

#

and future updates will be rr

iron crown
urban nebula
#

any new feature will be on rr7

#

remix won't get new features

iron crown
#

so basically now everyone that uses remix will hv to migrate to rr7?

urban nebula
#

yes

iron crown
#

dude that's messed up

#

i already made my project from scratch, frm next to remix

#

but will migrating to rr7 solve my problem?

urban nebula
#

if you'll use custom route.ts yes

#

basically you write path and file there so you can do whatever

iron crown
#

i had tried that with my remix app too, remixConfig or smth, didn't work

urban nebula
#

it works in rr7

iron crown
#

but fine, i'll anyways have to migrate to rr7

#

thanks

#

also, will this server be active? or all discussions will be on the react router server frm now on @urban nebula

urban nebula
#

this is rr7 server now

iron crown
#

name is still remix tho

#

unofficially u mean

urban nebula
#

owners said so i guess its official

iron crown
#

ohh sweet

supple drum
#

This keeps being the official server