Closed xHomu closed 2 years ago
@homumado I do not have a Windows myself. Do you have any ideas on how we could approach this?
I've added tee
to get the full output of remix routes --json
. The output can be very long when you have many routes, and without tee
, it gets truncated. Not sure if there's a cross-platform alternative to tee
.
@homumado I think a solution might be ditching exec
in favour of using Remix internal utils for reading the routes.
Pros:
5.03s
to 0.30s
for me.Cons:
I'm still researching for the best approach.
@homumado This was fixed in @routes-gen/remix
0.3.4
. You can upgrade with yarn add @routes-gen/remix@latest
. Feel free to re-open this issue or another one, if you still encounter any issues after upgrading.
Yey it works! Thanks for kicking ass, @sandulat !
Awesome! Glad it works!
@xHomu This was actually affecting another package as well: https://github.com/sandulat/remix-docs-gen
It's now fixed there as well. Thanks once again for pointing this one out!
Describe the bug
Followed the instructions up to this line
yarn routes-gen -d @routes-gen/remix
and received the following error:I believe this occurs because on Windows it defaults to use command prompt instead of Powershell, where the command would have worked.
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
yarn add routes-gen @routes-gen/remix
yarn routes-gen -d @routes-gen/remix
Expected behavior
It will parse and export the routes, based on the driver that you've provided.
Screenshots or Videos
No response
Platform
Additional context
No response