running wasp inside google idx error
I am trying to setup the dev environment test out opensaas with google online ide idx, but when I try to run command: wasp db migrate-dev
wasp-bin: script: streamingProcess: exec: invalid argument (Bad file descriptor)
Is this fixable? I think the IDX system is Nix, so maybe it's not compatible? I should avoid this online IDE in order to make it work? Thank you.
π --- Compiling wasp project... --------------------------------------------------
[ Wasp ] Starting npm install
[ Wasp ]
[ Wasp ] removed 11 packages, and audited 833 packages in 4s
......
......
β
--- Your wasp project has successfully compiled. -------------------------------
π --- Starting database migration... ---------------------------------------------
wasp-bin: script: streamingProcess: exec: invalid argument (Bad file descriptor)
@Wasp Team @Wasp Expert
8 Replies
Hmm how can we get access to IDX? π€¨ I don't have access to test it out unfortunately.
Could share some details about the system like which OS it it and which version of Node.js is it running?
Node.js v20.11.1.
and it uses nix to define packages etc
uname -a
Linux monospace-aiapp-1712068202823 6.1.75+ #1 SMP PREEMPT_DYNAMIC Fri Mar 1 15:14:26 UTC 2024 x86_64 GNU/Linux
Wohooo @terrence, you just became a Waspeteer level 1!
Maybe try running
wasp clean
then wasp start
again π
Did you successfully work with Primsa on IDX before?this is first time try IDX, in the begining it complains about no openssl, I added this package, it passed first round, then this error occured, stucked here...
tried wasp clean, when I run wasp db migrate-dev, same error.
Since this error seems somehow related to Prisma, I'd maybe try a simple Prisma app to see what happens:
And then try to load the API at
http://localhost:3000/users
π
This is just trying to narrow down for which part IDX fails.woking on this, will update you shortly
here is the api endpoint:
https://3000-monospace-cuai-1712031728728.cluster-hf4yr35cmnbd4vhbxvfvc6cp5q.cloudworkstations.dev/users
[{"id":1,"email":"[email protected]","name":"Alice"},{"id":2,"email":"[email protected]","name":"Nilu"},{"id":3,"email":"[email protected]","name":"Mahmoud"}]
everything seems works fine