Skip to content
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

Fix this.serverless is undefined during zip #1153

Merged
merged 1 commit into from May 10, 2022

Conversation

j0k3r
Copy link
Member

@j0k3r j0k3r commented May 9, 2022

Calling serverlessZip directly does not inject (or hydrate) the this inside the serverlessZip.
We need to use .call for that.

Fix #1140

@j0k3r j0k3r added this to the 5.7.1 milestone May 9, 2022
lib/packageModules.js Outdated Show resolved Hide resolved
@j0k3r j0k3r force-pushed the fix/this-serverless-undefined-zip branch from 39d38d9 to c0d8c4d Compare May 9, 2022 12:45
Copy link
Member

@vicary vicary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's see if @3alqassab @rizowski has follow ups on #1140.

@rizowski
Copy link

rizowski commented May 9, 2022

This fixed my initial issue. I am receiving a different error but I don't believe it is related. LGTM

Calling `serverlessZip` directly does not _inject_ (or hydrate) the `this` inside the `serverlessZip`.
We need to use `.call` for that.
@j0k3r j0k3r force-pushed the fix/this-serverless-undefined-zip branch from c0d8c4d to c34dbdc Compare May 10, 2022 06:18
@j0k3r j0k3r merged commit 1dea9ec into master May 10, 2022
@j0k3r j0k3r deleted the fix/this-serverless-undefined-zip branch May 10, 2022 07:46
@j0k3r j0k3r mentioned this pull request May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read property 'serverless' of undefined
3 participants