1
0 Comments

I am trying to create a next.js application. But when I import and use Editor from ‘react-draft-wysiwyg’, I get an error saying that “ReferenceError: window is not defined”.

My import statement looks like “import Editor from ‘react-draft-wysiwyg’;”

How do I solve this?

saam Changed status to publish February 26, 2022