kiliman / remix-flat-routes

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

Snapshopts in route files breaks migrate-flat-routes #93

Closed cjoecker closed 7 months ago

cjoecker commented 7 months ago

I have snapshot files in my routes folder like app/routes/__snapshots__/jobs.connection-check.test.ts.snap

When I run migrate-flat-routes, I get this error: Error: Invalid route module file: app/routes/__snapshots__/jobs.connection-check.test.ts.snap

kiliman commented 7 months ago

Interesting. Do you use the ignoredRoutedFiles setting in remix.config?

I should probably read that in during migration.

kiliman commented 7 months ago

This has been fixed in v0.6.4

cjoecker commented 7 months ago

@kiliman yeah, I use ignoredRoutedFiles. Thanks for fixing it!