kiliman / remix-flat-routes

Remix package to define routes using the flat-routes convention
MIT License
640 stars 22 forks source link

Support for Remix 2.9.1 #119

Closed JasonColeyNZ closed 2 months ago

JasonColeyNZ commented 2 months ago

Hi @kiliman,

Will there be support for remix 2.9.1 soon, I have tried to upgrade and get build errors ...

While resolving: remix-vite-template@1.4.4
npm ERR! Found: @remix-run/dev@2.8.1
npm ERR! node_modules/@remix-run/dev
npm ERR!   dev @remix-run/dev@"^2.9.1" from the root project
npm ERR!   peer @remix-run/dev@"^1.15.0 || ^2.0.0" from @remix-run/v1-route-convention@0.1.4
npm ERR!   node_modules/@remix-run/v1-route-convention
npm ERR!     @remix-run/v1-route-convention@"^0.1.3" from remix-flat-routes@0.6.4
npm ERR!     node_modules/remix-flat-routes
npm ERR!       dev remix-flat-routes@"0.6.4" from the root project
npm ERR!   1 more (remix-flat-routes)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev @remix-run/dev@"^2.9.1" from the root project
kiliman commented 2 months ago

It's not a compatibility issue with remix-flat-routes. I believe it's because we're using React Canary.

If you update to Remix v2.9.1 using npm install --legacy-peer-deps it should update correctly. Then, you can use npm install regularly from now on.

JasonColeyNZ commented 2 months ago

Thank you @kiliman, learn something new, thx.