#How to use react-pdf in Next.js 13?

1 messages · Page 1 of 1 (latest)

echo questBOT
#

Hi @topaz flame. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

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)).

For a more accurate solution, I would recommend checking the specific error message you're receiving against the Next.js documentation or the react-pdf library's documentation or issues on its GitHub repository.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: