Open hozaifa4you opened 11 months ago
did you add office parser to the server components external packages in your nextjs config file?
const nextConfig = { experimental: { serverComponentsExternalPackages: ["officeparser"], }, };
did you add office parser to the server components external packages in your nextjs config file?
const nextConfig = { experimental: { serverComponentsExternalPackages: ["officeparser"], }, };
Is it recommended??
Yes, the config is needed for the package to work in nextjs.
This solved my issue on Next.js 14 running Langchain PPTX loader.
My error was different though: Error: ENOENT: no such file or directory, open './test/data/05-versions-space.pdf'
Even though it was related to pdf-parse but this fixed it!
did you add office parser to the server components external packages in your nextjs config file?
const nextConfig = { experimental: { serverComponentsExternalPackages: ["officeparser"], }, };
There seems to be an issue β with loading the
langchain
document and theofficeparser
package.Everything is running smoothly with my tRPC APIs, except for one issue I encountered while attempting to load a PowerPoint file using the
langchain
document loader. To fix the problem, I installedofficeparser
, but this caused all my tRPC APIs to stop working. Removing 'officeparser' resolved the issue and my tRPC APIs worked without any problems. However, whenofficeparser
was installed, I received a 404 error message from tRPC.