Closed ewen-lbh closed 2 weeks ago
Huh strange. I have a few projects where the API is an external process that I'm developing against and the schema changes without any issues. I think we'll probably need a reproduction to hunt this down
Hey @ewen-lbh im going to close this since its gone abit stale but let me know if you have some time to dig into it 👍
Describe the bug
So basically I'm developing the API server alongside the frontend, and often when I make changes on the API server, while it re-generates the schema it seems like the schema is an empty file during a small period of time.
Unfortunately it's enough for Houdini to pick up on, try to reload and crash with a syntax error.
I think that schema syntax errors should cause the vite server to wait for changes before trying again, instead of crashing, because I have to restart vite everytime:
unfortunately, providing a repro is quite complicated, i can try if it's absolutely necessary
i can also try to implement this, i just need some pointers on where the parsing gets done (and how it hooks into vite)
Reproduction
No response