#How to use react-pdf in Next.js 13?
1 messages · Page 1 of 1 (latest)
Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details about the error you're encountering with the react-pdf library in your Next.js 13.4.12 project.
However, it's worth noting that Next.js 13.4 introduced the App Router with an entirely different architecture, built on the foundation of React Server Components and Suspense. This could potentially affect how certain libraries or custom components work in your application (source (https://nextjs.org/blog/next-13-4)).
Also, Next.js 13.4 has enhanced static export support, including using React Server Components and Route Handlers (source (https://nextjs.org/docs/app/building-your-application/deploying/static-exports)).
If the error is related to async functions in client components, remember that client components cannot be async functions as per the React Server Component RFC on promise support (source (https://nextjs.org/docs/messages/no-async-client-component)).