Skip to content

Shopify Remix Boilerplate - How setup flat routes #151

Answered by mikkpokk
dev-raunakyadav asked this question in Q&A
Discussion options

You must be logged in to vote

Provided error from npx remix routes refers you are using react-router 7. Therefore, you should follow react-router 7 documentation. Since react-router v7 replaced remix as a package. You should remove remix packages from your package.json and migrate remix imports with react-router imports.

Upgrading from Remix
Routing with React Router v7
Using remix-flat-routes with React Router v7

Why Remix replaced with React Router

How to install React Router v7 as a framework (previously Remix)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikkpokk
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