Compare commits

...

1 Commits

Author SHA1 Message Date
Thuc Pham 795429c3ce fix: groq contructor not found when running in nextjs 2024-09-13 04:51:12 +00:00
+1 -1
View File
@@ -37,13 +37,13 @@ export default function withLlamaIndex(config: any) {
webpackConfig.resolve.alias = {
...webpackConfig.resolve.alias,
"@google-cloud/vertexai": 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",
"groq-sdk": "commonjs groq-sdk",
});
return webpackConfig;
};