You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like some regression removes the first character, which for nested routes without nested URLs removes the underscore and produces a route with path parameter.
Applied to your example, _app/index.tsx turns into app/index.tsx and produces a route for /app. _app/_index.tsx is turned into app/_index.tsx. Now you routes collide.
We just published version v0.0.0-nightly-a024557-20230207 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
Activity
ctrlplusb commentedon Jan 30, 2023
I used the following structure to wrap the "root" route in a folder;
i.e.
/app/routes/_index/index.tsxlennerd commentedon Jan 30, 2023
@ctrlplusb what do you get, when you run
npx remox routes?confix commentedon Jan 31, 2023
I guess
remix routesproduces the error.Given the following layout
produces the following routes output
It seems like some regression removes the first character, which for nested routes without nested URLs removes the underscore and produces a route with path parameter.
Applied to your example,
_app/index.tsxturns intoapp/index.tsxand produces a route for/app._app/_index.tsxis turned intoapp/_index.tsx. Now you routes collide.mcansh commentedon Jan 31, 2023
@confix both of these issues are resolved in #5228 which should have landed in yesterdays release but didn't make the train
confix commentedon Jan 31, 2023
@mcansh Ah, good to know. Gonna wait then. Thanks!
MichaelDeBoey commentedon Feb 6, 2023
Closed by #5228
github-actions commentedon Feb 7, 2023
🤖 Hello there,
We just published version
v0.0.0-nightly-a024557-20230207which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!Thanks!