[go: nahoru, domu]

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

Unable to deploy using Node.js 16 #25

Open
ericktpires opened this issue Dec 21, 2021 · 0 comments · May be fixed by #26
Open

Unable to deploy using Node.js 16 #25

ericktpires opened this issue Dec 21, 2021 · 0 comments · May be fixed by #26

Comments

@ericktpires
Copy link

I use serverless-dotnet to deploy an API stack to AWS. It used to work perfectly well, but since I upgraded my version of Node.js to v16.13.1 (the latest LTS) I'm unable to deploy my API stack. When downgrading back to Node.js 14 (using nvm) the deploy works properly again.

On version 16 the deploy always fails with the message "Uploaded file must be a non-empty zip". Searching on internet for this message I've found this thread on StackOverflow. The consensus is that the problem was been caused by an issue on node-archiver when using it with newer versions of Node.js.

I have confirmed that this is likely the problem trying to unzip the deployment package found in the .serverless directory. Every file inside the zip seems to have an incorrect CRC.

The issue has since been closed and it seems that the latest version of node_archiver works with Node.js 16. But serverless-dotnet is still using an older version of this library.

@ericktpires ericktpires linked a pull request Dec 23, 2021 that will close this issue
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 a pull request may close this issue.

1 participant