diff --git a/.changeset/twenty-camels-burn.md b/.changeset/twenty-camels-burn.md
new file mode 100644
index 0000000000000000000000000000000000000000..c997d21836179ebcb8a9c30a200ae34d7383cfb9
--- /dev/null
+++ b/.changeset/twenty-camels-burn.md
@@ -0,0 +1,5 @@
+---
+"llamaindex": patch
+---
+
+fix: unable to resolve unpdf in nextjs
diff --git a/packages/llamaindex/src/next.ts b/packages/llamaindex/src/next.ts
index c59206071910587592624103f1ef6b0d0e679646..8e44e479c1f33a4598ea4379b375dd0889f527b3 100644
--- a/packages/llamaindex/src/next.ts
+++ b/packages/llamaindex/src/next.ts
@@ -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;
   };