fix: unable to resolve unpdf in nextjs (#1369)

This commit is contained in:
Thuc Pham
2024-10-23 11:48:22 +07:00
committed by GitHub
parent e9a111d9d3
commit 9f22aae57c
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---
fix: unable to resolve unpdf in nextjs
+1 -1
View File
@@ -31,7 +31,6 @@ export default function withLlamaIndex(config: any) {
webpackConfig.resolve.alias = {
...webpackConfig.resolve.alias,
"@google-cloud/vertexai": false,
unpdf: false,
};
// Following lines will fix issues with onnxruntime-node when using pnpm
// See: https://github.com/vercel/next.js/issues/43433
@@ -39,6 +38,7 @@ export default function withLlamaIndex(config: any) {
"onnxruntime-node": "commonjs onnxruntime-node",
sharp: "commonjs sharp",
chromadb: "commonjs chromadb",
unpdf: "commonjs unpdf",
});
return webpackConfig;
};