Skip to content

Conversation

@mochamadsatria
Copy link
Contributor

This is to suspend unwanted error because canvas cannot be found (Server Side Rendering) because when trying to use other library like firebase it does not make Re-export error.

This is to suspend unwanted error because canvas cannot be found  (Server Side Rendering) because when trying to use other library like firebase it does not make Re-export error.
@wojtekmaj
Copy link
Owner

Are you saying the suggested installation instructions for React-PDF are wrong? Is there a reproducible example showing what's not working at the moment?

@mochamadsatria
Copy link
Contributor Author

Yes, this is the repository contain the bare minimum to reproduce the error.

https://github.com/mochamadsatria/react-pdf-error-reproduce

@wojtekmaj
Copy link
Owner

Thanks for this. Cleaned up documentation and examples, looks like it's working better than before. Fantastic tip :)

@wojtekmaj wojtekmaj changed the title fix next.config.js to ignore canvas while ssr Improve Next.js documentation and samples Sep 28, 2023
@wojtekmaj wojtekmaj merged commit bbe53bc into wojtekmaj:main Sep 28, 2023
wojtekmaj added a commit that referenced this pull request Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants