question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Package Individually Doesn't Work Properly After v1.22.1

See original GitHub issue

After v1.22.1, package individually seem to not work properly.

This repo can be used to replicate this: https://github.com/randalvance/serverless-typescript-reference

First change the version of serverless-esbuild in package.json to 1.22.0. Run npm run build. Inside .serverless folder, check the individual function’s zip file content and notice that only the code for that single function is included.

Update to version 1.22.1 , do an npm i and npm run build. Inside .serverless folder, check the individual function’s zip file content:

Expected Behaviour The individual zip files should only contain the code for a single function.

Actual Behaviour The individual zip files contain code for all the other functions.

This bug seems to still be present in v1.23.0.

OS: Windows 10 NodeJS Version: 14.17.5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
samchungycommented, Dec 12, 2021

@samchungy, did you change the version to 1.22.1 first? I updated the repo to use the problematic version so you can just pull the latest change.

~I also tried this in my Mac.~ I previously can replicate this also in my Mac, weirdly not anymore. I added the OS and NodeJS versions in the description.

Yeah, I replicated it on Windows but could not on OSX. I’ll fix it during the week if I have time.

0reactions
randalvancecommented, Dec 14, 2021

Thanks @samchungy, verified working now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package Individually Doesn't Work Properly After v1.22.1 ... - Issuehunt
First change the version of serverless-esbuild in package.json to 1.22.0 . Run npm run build . Inside .serverless folder, check the individual function's...
Read more >
Add busybox to replace some individually installed tools · Issue ...
BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for the most common ...
Read more >
Release Notes 22.1 - AutoRABIT Knowledge Center
Fixed an issue where Abort function to stop Provar jobs was not working as expected (#55511). Fixed an issue where production backup CI...
Read more >
Important Considerations and Known Issues - ServiceMax Help
Special consideration should be given when updating non-ServiceMax managed packages. Managed packages typically add custom fields to existing Salesforce ...
Read more >
nvm is not compatible with the npm config "prefix" option
Open a new terminal and this time it should not print any warning message. Check that nvm is working by executing nvm --version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found