vercel / next.js

The React Framework
https://nextjs.org
MIT License
122.51k stars 26.22k forks source link

Turbopack: Failed to compile (turbo) with (react-pdf) #66839

Closed yasseralsaidi closed 1 week ago

yasseralsaidi commented 1 week ago

Link to the code that reproduces this issue

https://github.com/yasseralsaidi/turbowithreactpdf

To Reproduce

  1. pnpm install
  2. pnpm dev --turbo
  3. you'll encounter the issue

Current vs. Expected behavior

i expect to run normally, but when use turbo it failed to compile, so i back to use it without --turbo

Provide environment information

"react": "^18",
   "react-dom": "^18",
   "next": "14.2.4",
   "react-pdf": "^9.0.0"

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)

Additional context

screenshot-localhost_3000-2024 06 13-17_16_38

jcorrie commented 1 week ago

I'm having the same issue.

Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!

kdy1 commented 1 week ago

Closing as duplicate of https://github.com/vercel/next.js/issues/65406