Hey, we migrated to RR7, but haven't migrated all our routes yet, so we still are using flat routes. The route type generation is not acting as I would suspect it should, but I may have some incorrect assumptions.
In the .react-router/types/+register.ts file, it is generating a duplicate key.. I have this generated for a few of our routes:
"/parts-and-merchandise/part-item/:id": {
"id": string;
};
"/parts-and-merchandise/part-item/:id/availability": {
"id": string;
};
"/parts-and-merchandise/part-item/:id": {
"id": string;
};
(top and bottom are the same key, causing type errors)
These are the filenames that these are generating off of:
_parts-and-merchandise.parts-and-merchandise.part-item.$id._index.tsx
_parts-and-merchandise.parts-and-merchandise.part-item.$id._part-item-basics.availability.tsx
_parts-and-merchandise.parts-and-merchandise.part-item.$id._part-item-basics.tsx
The bottom one is just the layout for the second one... but it seems to be generating a route for it? This seems like a bug to me, but maybe I'm doing something wrong? Any help would be appreciated!
(I tried to create a demo of this happening but codesandbox is not working with the RR7 template for me.. Might try to get an example going in a repo and see if I can reproduce) (This started happening on our update from 7.1.1 to 7.2.0, I downgraded back to 7.1.1 and it seems to work fine)