prisma: `generate`: "Error: Schema parsing --- thread 'main' has overflowed its stack"
$ prisma2 generate
(node:21024) ExperimentalWarning: The fs.promises API is experimental
Error: Schema parsing
thread 'main' has overflowed its stack
error Command failed with exit code 1.
Seems to be Windows related and related to Rust it’s stack size limit which is 1MB on Windows; (that’s what I’ve found on the interwebs)
Running it in Docker seems to fix it since that’s unix, but then when starting the project from Windows CLI it complains about not finding the windows query engine since the generate was done in unix 🤦♂ Happened after adding a new model to my prisma-schema, probably increased the necessary stack_size with that causing it to error.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (13 by maintainers)
I have a convenient way to reproduce this on my machine, working on a fix now.
For people running into the same issue. You can run the project in docker and run generate command from there. To start a container from within your current working folder in powershell:
or in bash
This launches a bash shell inside the container, you can then run any commands that you used to run from the folder
/home/dev
For example:
@janpio