-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
I am not able to use this in nextjs, everytime i import it in a class and try to call it in componentDidMount(), the import throws an error called window not defined
and when i try dynamic importing like this
const grained = dynamic(
() => {
return import ('../../grained.min.js');
},
{ ssr: false }
);
and call it in componentdidmount like this
componentDidMount(){
grained('#container', {});
}
i get an error, cannot call a class as a function
aamir747
Metadata
Metadata
Assignees
Labels
No labels