Open KitaharaMugiro opened 5 hours ago
Hey @KitaharaMugiro. This problem might be outside of zerox. Zerox shouldn't rely on any worker-script functionality.
Can you try logging what is in your next/worker-script directory?
ls -R .next/worker-script/node/
Bug Report
Description
An error occurs when running a server function in a Next.js application using
zerox
. The issue is related to a missing module:/Users/mugiro/ai-chatbot/.next/worker-script/node/index.js
.Reproduction
Use the following server-side code:
Run the application.
Observe the following error logs in the terminal:
Expected Behavior
The
processFile
function should process the uploaded file, extract text usingzerox
, and save the extracted text to a file without errors.Actual Behavior
The application crashes with the error:
Additional Context
The issue might be related to the
.next/worker-script
directory not being correctly generated or referenced. The error occurs consistently, even after clearing.next
and rebuilding the project.Steps Taken
.next
directory and rebuilt the project.