[X] I followed instructions in documentation written for my React-PDF version
[X] I have checked if this bug is not already reported
[X] I have checked if an issue is not listed in Known issues
[X] If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
The code sample provided for React PDF in Vite is currently not functional, as the React dependency is not included in the plugin. This issue is observed in the following location:
When attempting to run the code sample in Vite, it fails to recognize React components due to the missing React dependency. This prevents the proper rendering of the React PDF component.
Possible Solution
Include React as a dependency in the Vite plugin configuration or update the documentation to guide users on how to include React when using the Vite setup.
Thank you for your attention to this matter. Let me know if any further details are required.
Steps to reproduce
Clone the repository: git clone https://github.com/wojtekmaj/react-pdf.git
Navigate to the Vite sample: cd react-pdf/sample/vite
Install dependencies
Run the development server
Expected behavior
The React PDF component should render successfully in the Vite environment.
Actual behavior
The code execution fails, and the console logs indicate that React is not recognized as a dependency.
Before you start - checklist
Description
The code sample provided for React PDF in Vite is currently not functional, as the React dependency is not included in the plugin. This issue is observed in the following location:
Repository: wojtekmaj/react-pdf
Issue Details
When attempting to run the code sample in Vite, it fails to recognize React components due to the missing React dependency. This prevents the proper rendering of the React PDF component.
Possible Solution
Include React as a dependency in the Vite plugin configuration or update the documentation to guide users on how to include React when using the Vite setup.
Thank you for your attention to this matter. Let me know if any further details are required.
Steps to reproduce
git clone https://github.com/wojtekmaj/react-pdf.git
cd react-pdf/sample/vite
Expected behavior
The React PDF component should render successfully in the Vite environment.
Actual behavior
The code execution fails, and the console logs indicate that React is not recognized as a dependency.
Additional information
No response
Environment