error ReferenceError: document is not defined
null
It took a lot of research to even understand what was happening, and i may have gotten some things wrong, I have only been coding with javascript for about 3 months so please forgive any mistakes or lack of understanding. Anyway from what i gather the side bar during build is trying to render in a browser window on the server, which doesn't exist. Apart from causing the build to fail which in turn prevents vercel deploy this is a non issue.
To Reproduce
Steps to reproduce the behavior:
Create Next.js 13.4+ project (probably back to at least 13.2)
Add react-pro-sidebar to project
Restart Project
Error should show in console
Expected behavior
no errors
Screenshots
More detailed Error msg from build
Sidebar still works with out issue
Sidebar code:
which goes on from there laying out more nav items with a basic ending
Desktop (please complete the following information):
OS: Windows 10 -v: 19045.2965
Browser: Chrome -v: 114.0.5735.110
Next: -v: 13.4.4
React-pro-sidebar -v: 1.1.0-alpha.1
Node -v: 18.16.0
npm/npx -v: 9.5.1
Additional context
NextJS window is undefined fix #172 , is suppose to contain a fix for this, however when I went to try to add it into the sidebar code itself I found it was already there so this did not solve this issue for me clearly.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug This is the error message I get returned when i run the app in dev, I get a more detailed error when attempting to build.
To Reproduce Steps to reproduce the behavior:
Expected behavior no errors
Screenshots More detailed Error msg from build
Sidebar still works with out issue
Sidebar code:
which goes on from there laying out more nav items with a basic ending
Desktop (please complete the following information):
Additional context NextJS window is undefined fix #172 , is suppose to contain a fix for this, however when I went to try to add it into the sidebar code itself I found it was already there so this did not solve this issue for me clearly.