Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a limit to the number of routes #23

Closed
brightpixels opened this issue Aug 4, 2022 · 2 comments
Closed

Is there a limit to the number of routes #23

brightpixels opened this issue Aug 4, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@brightpixels
Copy link

brightpixels commented Aug 4, 2022

Describe the bug

In a Remix app, we are struggling to add any additional routes. We are getting the following error:

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at /Users/my-appl/node_modules/@routes-gen/remix/dist/index.js:52:30
    at ChildProcess.exithandler (child_process.js:310:7)
    at ChildProcess.emit (events.js:376:20)
    at maybeClose (internal/child_process.js:1055:16)
    at Socket.<anonymous> (internal/child_process.js:441:11)
    at Socket.emit (events.js:376:20)
    at Pipe.<anonymous> (net.js:673:12)

The only way around it, is to delete an existing route in order to create a new one.

I have tested on a fresh remix app and limit appears to be 68 routes and issues shows up when I create any additional routes.

Your Example Website or App

Local app

Steps to Reproduce the Bug or Issue

  1. Create 70 routes on a fresh remix app
  2. Try to run the command routes-gen -d @routes-gen/remix in a Remix App

Expected behavior

To be able to generate an updated /routes.d.ts file

Screenshots or Videos

No response

Platform

  • OS: macOS

Additional context

No response

@sandulat sandulat added the bug Something isn't working label Aug 6, 2022
@sandulat sandulat self-assigned this Aug 6, 2022
@sandulat
Copy link
Owner

sandulat commented Aug 6, 2022

@brightpixels Looking into it.

@sandulat
Copy link
Owner

sandulat commented Aug 6, 2022

@brightpixels This is now fixed and published under @routes-gen/remix 0.3.3.
image

Upgrade with yarn add @routes-gen/remix@latest.

Please let me know if you still encounter this issue.

Thank you very much for opening the issue!

@sandulat sandulat closed this as completed Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants