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
{{ message }}
Repository navigation
AWS - Incorrect path seperate used when defining package path. #5934
Incorrect path separator used when determining where the deployment artefact is located in AWS deployment.
What went wrong?
When setting the package path the wrong path seperate was being used for MacOS, resulting in the incorrect path being used to upload artefacts to S3.
What did you expect should have happened?
Correct path seperate to be used based upon OS.
What was the config you used?
Standard
What stacktrace or error message from your provider did you see?
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Error --------------------------------------------------
ENOENT: no such file or directory, stat './server/.serverless/.serverless/fishcare-cms-server.zip'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 9.3.0
Serverless Version: 1.39.0
Somehow this one has resurfaced in the latest versions 1.49 and 1.50, I am still on my way to test which one works.
I rolled back to 1.38.0, but a more thorough investigation would be better, I think.
Reacted by RyanAuger, Dan, Vjekoslav Giacometti, Yepeng Fan, Marcelo Reyna, Mathew Chan, Anton Livaja, Francisco Memoli, Hubert Krauze, Aaron and 2 more
I'm still having this issue with version 1.66. I'm happy to roll back for now but I worry that is not sustainable, does anyone know a solution or work around?
Seems to have found it's way back into 1.66 apparently and 1.68 doesn't work for me too. I am running into the following error (PC configuration included):
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Error --------------------------------------------------
Error: ENOENT: no such file or directory, open '/builds/.../node_modules/.bin/image-size'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: linux
Node Version: 12.14.1
Framework Version: 1.68.0
Plugin Version: 3.6.8
SDK Version: 2.3.0
Components Version: 2.30.2
I was experiencing this behavior as well. I tried reverting to several versions to no avail. I dug around a little bit and I'm not sure which one of these actions fixed the problem, but here's the steps I took (windows 10, PS):
Run npm list -g --depth 0 (this listed all of the packages I'd installed globally via npm, and several of them had broken dependencies)
uninstall all npm packages (including serverless): npm uninstall -g <package-name>
Serverless: Compiling with Typescript...
Serverless: Using local tsconfig.json
Serverless: Typescript compiled.
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Error --------------------------------------------------
Error: ENOENT: no such file or directory, stat '/Users/<me>/<project>/packages/backend/.build/node_modules/.bin/tsc'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 12.16.1
Framework Version: 1.69.0 (standalone)
Plugin Version: 3.6.8
SDK Version: 2.3.0
Components Version: 2.30.2
I hv not taken the template, rather i used the simplier serverless-http method and this is running for me. So not sure my issue is related to anything above.
@crsepulv thanks, I believe the issue lies in that when you have a custom tsconfig.json and you custom compile the typescript project, while also using the serverless-plugin-typescript which I believe already does that automatically under the hood.
Activity
julienseverin commentedon Mar 17, 2019
Got the same issue, had to rollback to 1.38.0
ClementKerneur commentedon Mar 17, 2019
Same problem, i rollback to 1.38.0 also !!!
chrisanderss0n commentedon Mar 17, 2019
I will fix, PR coming up.
pmuens commentedon Mar 18, 2019
Just reverted #4188 which seems to be the root cause. Patch release should be out in ~30 minutes...
decebal commentedon Aug 16, 2019
Somehow this one has resurfaced in the latest versions 1.49 and 1.50, I am still on my way to test which one works.
I rolled back to 1.38.0, but a more thorough investigation would be better, I think.
aardrop commentedon Apr 17, 2020
I'm still having this issue with version 1.66. I'm happy to roll back for now but I worry that is not sustainable, does anyone know a solution or work around?
dretsa commentedon Apr 27, 2020
Seems to have found it's way back into 1.66 apparently and 1.68 doesn't work for me too. I am running into the following error (PC configuration included):
alphonso77 commentedon Apr 28, 2020
I was experiencing this behavior as well. I tried reverting to several versions to no avail. I dug around a little bit and I'm not sure which one of these actions fixed the problem, but here's the steps I took (windows 10, PS):
npm list -g --depth 0(this listed all of the packages I'd installed globally via npm, and several of them had broken dependencies)npm uninstall -g <package-name>sls deployagain, workscknuteson-firstlook commentedon May 5, 2020
Chiming in to say this is happening with 1.69.0
mithundas79 commentedon Dec 3, 2020
This is an issue when i am trying to use the serverless express template.
mithundas79 commentedon Dec 3, 2020
Ok problem is https://github.com/serverless/components/tree/master/templates/express NOT FOUND :(
bcraft commentedon Dec 4, 2020
picked this exact issue up again today on 2.12, replicated things manually and cannot repeat the error but sls package wont go through.
wmlutz commentedon Dec 12, 2020
@bcraft I just tried to get things going today on 2.15.0 and ran into the same problem.
mithundas79 commentedon Dec 12, 2020
I hv not taken the template, rather i used the simplier serverless-http method and this is running for me. So not sure my issue is related to anything above.
brognilucas commentedon Apr 21, 2021
Having the same problem here. When I deploy from my local environment works though.
crsepulv commentedon Apr 19, 2023
in my case the problem is
if I remove it, deploys well.
odiazjs commentedon May 31, 2024
@crsepulv thanks, I believe the issue lies in that when you have a custom
tsconfig.jsonand you custom compile thetypescriptproject, while also using theserverless-plugin-typescriptwhich I believe already does that automatically under the hood.