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
When using NodeJS 18 I can reproduce a consistent failure to deploy with a brand new function.
Repro steps:
doctl serverless init test --language ts
<change runtime to nodejs:18>
doctl serverless deploy test
doctl serverless deploy test --remote-build
> build
> tsc -b
sh: 1: tsc: Permission denied
It specifically happens when building locally then building remotely. If I change my NPM build command to chmod +x node_modules/.bin/tsc && tsc -b or npm ci && tsc -b it will work properly. If I delete the node_modules folder after building locally it works again. It appears to only happen with NodeJS 18, not default/14.
My wild theory is that doctl is uploading my local node_modules folder and attempting to run that on the server. I'm on a Windows machine so the tsc script doesn't have the execute permission that Unix systems require.
Describe the Issue:
When using NodeJS 18 I can reproduce a consistent failure to deploy with a brand new function.
Repro steps:
It specifically happens when building locally then building remotely. If I change my NPM build command to
chmod +x node_modules/.bin/tsc && tsc -b
ornpm ci && tsc -b
it will work properly. If I delete thenode_modules
folder after building locally it works again. It appears to only happen with NodeJS 18, not default/14.My wild theory is that
doctl
is uploading my localnode_modules
folder and attempting to run that on the server. I'm on a Windows machine so the tsc script doesn't have the execute permission that Unix systems require.Environment:
The text was updated successfully, but these errors were encountered: