-
Notifications
You must be signed in to change notification settings - Fork 28.3k
.docx parsing not working with mammoth using turbopack #72863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
I took your reproduction and tested it with a random docx, but it worked fine. |
Thank you taking the time to look at it. I have created a codesandbox that mimicks the same behaviour. Heres the link : https://codesandbox.io/p/devbox/zp44fd after some digging around i found the error is related to JSzip Stuk/jszip#777 (comment) it'd be nice to have turbo work with it cause the speed improvement is insane. |
@Abil-Shrestha Thank you. Looks like that was already fixed with #72608, so in |
I just checked using next@canary and it is working now! Thank you @mischnic |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:45 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8112 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 21.7.2 npm: 10.5.0 Yarn: N/A pnpm: 8.15.4 Relevant Packages: next: 15.0.4-canary.12 // Latest available version is detected (15.0.4-canary.12). eslint-config-next: N/A react: 19.0.0-rc-69d4b800-20241021 react-dom: 19.0.0-rc-69d4b800-20241021 typescript: 5.6.3 Next.js Config: output: N/A
Which example does this report relate to?
with-turbopack
What browser are you using? (if relevant)
Brave
How are you deploying your application? (if relevant)
No response
Describe the Bug
Parsing the .docx file with mammoth library works when i'm working with webpack but when i'm on --turbo working with turbopack it gives me this error :
Error processing document: Error: Bug : uncompressed data size mismatch
I've attached the screenshot of the error
Expected Behavior
Expected to parse the text from .docx file using the mammoth library.
To Reproduce
/api/process-docx
page.tsx:
The text was updated successfully, but these errors were encountered: