-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug - yarn packager is causing sls deploy to fail #690
Comments
Unfortunately I have no space to investigate, but I can tell that this happens when running npm as well - both locally and on pipeline.
Workaround: In order to allow my services to deploy successfully I had to downgrade the package via eg.
|
Just set this to [email protected] same issue. :/ just using npm for now... |
I'm getting the same issues with |
Same issue with 5.3.4 and 5.3.5. |
Actually my yarn error is slightly different:
|
|
@j0k3r Im using yarn: |
@j0k3r Looks like the |
As the master seems to fix the problem, I'm closing that issue. |
Unfortunately I'm seeing this again with Windows 10 specifically. Even with the master branch... |
But nothing really changed since your last comment 🤔 |
Yea, it's strange it happens on my laptop but not my desktop, could be different versions of yarn I'll look into it... I also think this may have something to do with using a linked package. |
Hello, Here are some verbose logs:
yarn v2.4.1 |
@omar-dulaimi Same here, I turned to
|
@jp928 Unfortunately setting this flag did not solve the issue for me:
|
Any update on this? |
So after a little bit of digging around, here's what I found:
Basically, I had to change how serverless-webpack install and runScripts methods work, by changing them back to their @5.1.0 forms. In those forms, the child processes were called using a different node api, that sets the max buffer for stdio. This maxBuffer value can be set from the serverless template like this(as mentioned in @5.1.0 README):
Hopefully, some people here shed some light on the notes above so we could choose sensible values. Happy to submit a PR for this @j0k3r |
any1 managed to solve this? its really annoying |
so i noticed i was missing a dependency in my package.json that was installed inside my node_modules. i was using jsonwebtoken and had @types/jsonwebtoken in my dev-dependencies but not jsonwebtoken in my dependencies. was running with: hope this helps |
This is still occurring for us, but only randomly in some components which all have mostly identical package, webpack + sls configs. BB pipelines using Atlassian Linux distro |
People are having issues with newer versions serverless-heaven/serverless-webpack/issues/690
… npm install. Had this issue: serverless-heaven/serverless-webpack#690. Also removed/updated some dependencies.
while this is still an open issue, if your using typescript you can give serverless-plugin-typescript a try. |
For me this was an error due to an old serverless version and not in serverless-webpack, bumping serverless from 2.43 to 2.51.2 Solved it. |
See #992 (comment), feel free to re-open this if you think your problem have a different cause. |
This fixed it for me: |
So I ran into what appears to be the same issue as this ticket after we recreated our I narrowed down the following error to the commit that we deleted and recreated the
I can confirm after trying many things, two methods (other than going back to the commit prior to recreating the
I'm therefore curious if there is a bug here that was introduced with changes introduced after I did run Anyway, for now, we're going to go with option 1, as I spent quite a few hours of trial and error trying to figure out the root cause that recreating the |
I just had the same error on Aug, 31, 2023. My environment: darwin, node 16.20.0, framework 3.34.0 (local), plugin 6.2.3, SDK 4.3.2 "serverless-webpack": "^5.3.0" After isolating packages and downgrading sls and node version by version I finally got a warning saying it could not identify the version of axios, so I reset all versions, simply installed axios and everything went just fine. The funny thing is that we don't use axios at all, so I tend to believe that it is some sort of peer dependency of packages. I hope this helps someone. |
Hi any fix on this? |
Thanks brother :D I got it |
This is a Bug Report
Description
Using serverless pro to deploy using serverless-webpack "serverless-webpack": "^5.3.5". Successfully deployed if I change packager to npm. not sure what is going on. If I deploy locally with yarn as the packager it works.
Additional Data
Serverless: Invoke webpack:package
Error --------------------------------------------------
Error: yarn list --depth=1 --json --production failed with code 1
at ChildProcess. (/hive/services/sales-profile/node_modules/serverless-webpack/lib/utils.js:91:16)
at ChildProcess.emit (events.js:314:20)
at ChildProcess.EventEmitter.emit (domain.js:483:12)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
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.19.0
Framework Version: 2.23.0 (local)
Plugin Version: 4.4.3
SDK Version: 2.3.2
Components Version: 3.6.2
Build step failed: serverless deploy --stage feature-sales-profiles-lambdas --region us-east-1 --force --org myOrg --app myApp --debug
failure
Deploy failed!
Error: Build step failed: serverless deploy --stage feature-sales-profiles-lambdas --region us-east-1 --force --org myOrg --app myApp --debug
The text was updated successfully, but these errors were encountered: