mrousavy/nitro

Nitro: RangeError: Maximum call stack size exceeded

gtokman opened this issue · 5 comments

Description

I upgraded to 0.0.6 for nitro, and I'm seeing when running yarn run nitro-codegen in our spec.

    ⚙️   Generating specs for HybridObject "Send"...
        ❌  Failed to generate spec for Send! RangeError: Maximum call stack size exceeded
    ❌  No specs found in Send.nitro.ts!

Can you please create a simply reproduction?

I'm having trouble reproducing it. Here's a video of me getting the error on 0.6.0 after adding the Send prefix to a model.
https://github.com/user-attachments/assets/7a3dc39e-9672-44f7-a238-c963a46c0ea8

Is there another type called SendRequest?

Can you work around this issue for now by just avoiding the Send prefix?
Then I'll consider it low priority and focus on other things until the release.

Yeah, it's not a blocker. I can't reliably reproduce it either 😅