-
Notifications
You must be signed in to change notification settings - Fork 35
Lambda Functions bundling failed due to non required 'encoding' module #309
Comments
Sorry, I didn't find a solution within the #135 ticket. As far as I know a fix is just to add |
I also hit this issue as well, just by importing the new AWS SDK v3 for S3 ( I even customised my Next.js webpack configuration to bundle/minify my serverless functions as well, but this module still tries to resolve npm packages and do its own bundling. Is there a way I can skip the bundling of the JS files for serverless functions, and just do the rest (e.g. zipping, etc.) using the files I provide? I would prefer to do the bundling on my own rather than installing I have also gone through #68 but I don't see any solution there, apart from some proposals. edit: I managed now to bundle the serverless functions separately directly with webpack (not through Next.js) and it seems that it works, and it does not try to resolve packages. |
Hi @lambrospetrou yes you can! This is somehow documents here (not clear enough though):
If your functions are already packed into |
Cool, I actually looked at the docs but missed that line. I found out about the ready I suggest adding this information in the official Netlify docs along with conventions like naming, similar to the unbundled function deploys section since for more advanced cases, this is really the only way to go. Thanks |
Thanks @lambrospetrou, docs are not open source. I'll open an issue for our docs team per you great suggestion :) |
excuse me. @erezrokah , i still confused how to do it. can you just show me the repo? please |
Hi @imamhanafi1998, can you describe the problem you're experiencing? I'm not sure what repo you are referring to |
I'm seeing a similar problem.
Its not a React Native project, and we don't use that module. |
I have issues with deployment on Netlify with dependency ‘encoding’ which is not used by my project explicitly. I discovered that once I added
faunadb
dependency to my project.npm run build
of vue-cli works fine locally, but fails on Netlify.Configuration
netlify.toml
package.json
Environment Info
Deploy logs
The text was updated successfully, but these errors were encountered: