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
Hello, I have a monorepo with the following structure:
apps
contracts
web
packages
I need to run the function "verifyTask" from the apps/web folder and this function contain child_process which run on apps/contracts:
npx hardhat verify 0x... 0x... 536472061365408 86400 0
Since apps/contracts requires the hardhat environment.
However, when I run the script through child_process, I get an error. Here's the part of the script where the issue might be occurring. Does the path change during deployment? Here, an absolute path is specified:
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a monorepo with the following structure:
I need to run the function "verifyTask" from the apps/web folder and this function contain child_process which run on apps/contracts:
npx hardhat verify 0x... 0x... 536472061365408 86400 0
Since apps/contracts requires the hardhat environment.
However, when I run the script through child_process, I get an error. Here's the part of the script where the issue might be occurring. Does the path change during deployment? Here, an absolute path is specified:
Here's the error:
Can someone suggest how I can correctly specify the path in the monorepo to run the script using child_process? Or some advice for my vercel.json?
My vercel.json draft
P.s. problem with Vercel deployment, on the localhost all works fine.
Which path I get in logs, when I run verifyTask:
prod: /var/task/apps/contracts
path: …/project/apps/contracts
And in the case of production, it doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions