Skip to content
Snippets Groups Projects
Unverified Commit ec59acd3 authored by Marcus Schiesser's avatar Marcus Schiesser Committed by GitHub
Browse files

fix: bundling issue with pnpm (#1060)


Co-authored-by: default avatarAlex Yang <himself65@outlook.com>
parent c69e740c
No related branches found
No related tags found
No related merge requests found
---
"llamaindex": patch
---
fix: bundling issue with pnpm
...@@ -32,6 +32,12 @@ export default function withLlamaIndex(config: any) { ...@@ -32,6 +32,12 @@ export default function withLlamaIndex(config: any) {
"@google-cloud/vertexai": false, "@google-cloud/vertexai": false,
"groq-sdk": false, "groq-sdk": false,
}; };
// Following lines will fix issues with onnxruntime-node when using pnpm
// See: https://github.com/vercel/next.js/issues/43433
webpackConfig.externals.push({
"onnxruntime-node": "commonjs onnxruntime-node",
sharp: "commonjs sharp",
});
return webpackConfig; return webpackConfig;
}; };
return config; return config;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment