Closed wojtekmaj closed 1 year ago
@benzler Can you provide a reproducible example? Just tried on a fresh Next.js app with no issues. Can't even figure out where this error is coming from.
Not sure if this is useful but I was able to reproduce this error in a project which uses the pages router only, no app router.
Was having same issue so created test project to reproduce but it worked fine in the new project. I couldn't find any obvious reason so I started copying over pieces of the existing project one-by-one, confirming along the way. Finally I had copied over everything and the new project still worked. The only difference was that the test project had an app folder where as the existing project does not use the app router at all. I deleted the app/ folder from the test project, reinstalled node modules, and the error appeared.
My conclusion is that the error appears when using the pages router only, but not when using the pages router in conjunction with the app router.
Very helpful actually! Let me try this.
Discussed in https://github.com/wojtekmaj/react-pdf/discussions/1577