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

Deployment failed when added llamaindex library #550

Open
SyedAli00896 opened this issue Aug 9, 2024 · 2 comments
Open

Deployment failed when added llamaindex library #550

SyedAli00896 opened this issue Aug 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@SyedAli00896
Copy link

Hi, i am trying to use llamaindex library in my 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

node_modules/onnxruntime-node/dist/binding.js:9:8:
9 │ require(../bin/napi-v3/${process.platform}/${process.arch}/onnxruntime_binding.node);
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/linux/x64/onnxruntime_binding.node

node_modules/onnxruntime-node/dist/binding.js:9:8:
9 │ require(../bin/napi-v3/${process.platform}/${process.arch}/onnxruntime_binding.node);
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/darwin/x64/onnxruntime_binding.node

node_modules/onnxruntime-node/dist/binding.js:9:8:
9 │ require(../bin/napi-v3/${process.platform}/${process.arch}/onnxruntime_binding.node);
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/linux/arm64/onnxruntime_binding.node

node_modules/onnxruntime-node/dist/binding.js:9:8:
9 │ require(../bin/napi-v3/${process.platform}/${process.arch}/onnxruntime_binding.node);
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/win32/arm64/onnxruntime_binding.node

node_modules/onnxruntime-node/dist/binding.js:9:8:
9 │ require(../bin/napi-v3/${process.platform}/${process.arch}/onnxruntime_binding.node);
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No loader is configured for ".node" files: node_modules/onnxruntime-node/bin/napi-v3/win32/x64/onnxruntime_binding.node

node_modules/onnxruntime-node/dist/binding.js:9:8:
9 │ require(../bin/napi-v3/${process.platform}/${process.arch}/onnxruntime_binding.node);
`

Versions:

  • OS: Mac
  • Serverless Framework Version: ^3.31.0
  • Plugin Version: ^1.48.5

Additional context

  • llamaindex Version: ^0.5.12"
@SyedAli00896 SyedAli00896 added the bug Something isn't working label Aug 9, 2024
@Matangub
Copy link

did you find any solution?

@SyedAli00896
Copy link
Author

did you find any solution?

run-llama/LlamaIndexTS#1110

The build issue is resolved with the help of this. But then the tiktoken issue arrived, which I'm still not able to fix. If you are able to run it successfully, please do let me know as well. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants