You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a request that goes to api/verification and executes a function with parameters. Here is the function that contains child_process. It seems that I need to run this child_process in the contracts folder (as all the necessary environment is set up there), which is causing an error.
Uncaught Exception {"errorType":"Error","errorMessage":"spawn /bin/sh ENOENT","code":"ENOENT","errno":-2,"syscall":"spawn /bin/sh","path":"/bin/sh","spawnargs":["-c","npx hardhat verify 0x... 0x... 536472061365408 86400 0"],"stack":["Error: spawn /bin/sh ENOENT"," at ChildProcess._handle.onexit (node:internal/child_process:283:19)"," at onErrorNT (node:internal/child_process:476:16)"," at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"]}
Unknown application error occurred
Runtime.Unknown
It seems to be related to the missing environment, and I need to run pnpm install in the contracts folder. Can you suggest how I can configure this? I don't understand how to set it up because the root folder is specified when deploying to Vercel.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have a monorepository structure:
I have a request that goes to api/verification and executes a function with parameters. Here is the function that contains child_process. It seems that I need to run this child_process in the contracts folder (as all the necessary environment is set up there), which is causing an error.
Here's the function:
The error message is as follows:
It seems to be related to the missing environment, and I need to run pnpm install in the contracts folder. Can you suggest how I can configure this? I don't understand how to set it up because the root folder is specified when deploying to Vercel.
My vercel.json
Is this right way or do I need to deploy both of this apps into vercel?
Beta Was this translation helpful? Give feedback.
All reactions