-
Notifications
You must be signed in to change notification settings - Fork 391
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
Node Serverless deployment fails due to bundling issue #1110
Comments
how about make this external package? |
In that scenario, the size limit for lambda gets exceeded. Also, the library doesn't seems to support treeshaking unfortunately. |
What's your use case in this scenario? what modules are you using |
add this to your esbuild config |
Thanks. The solution you provided worked and I successfully deployed the code to AWS. However when I tried to run the lambda, its getting failed with status "502Bad Gateway".
When I tried to use make tiktoken as external dependancy, I got the following error in my lambda:
|
@SyedAli00896 we had a similar issue with NextJS deployment on Vercel, see run-llama/create-llama#164 (was fixed by copying the WASM file; see https://github.com/run-llama/create-llama/pull/201/files). |
fixed in latest 0.5.20 (use |
Hi, i am using llamaindex library in my aws nodejs serverless project. It is working fine in development mode, but when I tried to deploy it, it started giving me errors in bundling of code. Here are the errors:
`
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/darwin/arm64/onnxruntime_binding.node
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/linux/x64/onnxruntime_binding.node
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/darwin/x64/onnxruntime_binding.node
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/linux/arm64/onnxruntime_binding.node
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/win32/arm64/onnxruntime_binding.node
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/win32/x64/onnxruntime_binding.node
`
For reference, I'm using serverless-esbuild plugin for code bundling, i've tried serverless-webpack also.
Here are the library versions from my package.json file:
"serverless": "^3.31.0",
"serverless-esbuild": "^1.48.5",
"llamaindex": "^0.5.12",
The text was updated successfully, but these errors were encountered: