-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Description
Window is not defined every time I was trying npm install reactjs modules
window is not defined after install react-chat-widget or any others reactjs modules
Error of Window is not defined when import react modules
when i import the module as picture below:
Step to get error
Steps to produce the error after install react modules:
- Open cmd as administration
- run "yarn run dev"
- localhost:3000 started
- open chrome browser, refresh
- Unhandled Rejection (ReferenceError): window is not defined
Expected behavior
I expect react-chat-widget it can do like this as picture below after installed module:
Screenshots of Error shows in browser after run it
System information
- OS: Windows
- chrome
- Version of Next.js: [e.g. 7.0.2]
Metadata
Metadata
Assignees
Labels
No labels