Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Error - window is not defined for React/Nextjs #514

@rwsabhishek

Description

@rwsabhishek

I am facing the below error in react/next js - window is not defined

MY SOLUTION - So to resolve this for now, I have to edit the node module postscribe.js file and add following conditions in line 1335.
image
image

Edited Code on line 1335 - var work={}; if (typeof window !== "undefined") work = window.document.createElement('div');

It will be helpful if you add this condition at your module js file. So i will use the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions