You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a nextjs + turbo project
Follow the example installation at https://mozilla.github.io/pdf.js/examples/index.html#interactive-examples
You will receive a compilation error from turbopack (see image below)
it seems that turbo pre-interprets import statements and tries to resolve them. I see that there is a webpack ignore statement, possibly there has to be a similar statement for turbo
Current vs. Expected behavior
Currently, the server crashes even though everything should only be run on client, furthermore the actual piece of code is never even referenced or called.
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64
Available memory (MB): 16384
Available CPU cores: 8
Binaries:
Node: 20.7.0
npm: 10.1.0
Yarn: N/A
pnpm: 8.6.10
Relevant Packages:
next: 14.2.13 // Latest available version is detected (14.2.13).
eslint-config-next: 14.2.13
react: 18.3.1
react-dom: 18.3.1
typescript: 5.6.2
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Link to the code that reproduces this issue
https://github.com/Matts/pdfjs-and-turbo-incompat
To Reproduce
See mozilla/pdf.js#18804 & vercel/turborepo#9195
Create a nextjs + turbo project
Follow the example installation at https://mozilla.github.io/pdf.js/examples/index.html#interactive-examples
You will receive a compilation error from turbopack (see image below)
it seems that turbo pre-interprets import statements and tries to resolve them. I see that there is a webpack ignore statement, possibly there has to be a similar statement for turbo
Current vs. Expected behavior
Currently, the server crashes even though everything should only be run on client, furthermore the actual piece of code is never even referenced or called.
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 20.7.0 npm: 10.1.0 Yarn: N/A pnpm: 8.6.10 Relevant Packages: next: 14.2.13 // Latest available version is detected (14.2.13). eslint-config-next: 14.2.13 react: 18.3.1 react-dom: 18.3.1 typescript: 5.6.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: