serverless-dotnet icon indicating copy to clipboard operation
serverless-dotnet copied to clipboard

Unable to deploy using Node.js 16

Open ericktpires opened this issue 4 years ago • 0 comments

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 avatar Dec 21 '21 23:12 ericktpires