Hello guys,
I am stuck in a problem of using react-raphael in nextjs project, i tried the way that shows in docs and show to me error of window is undefinied.
code :
error - ReferenceError: window is not defined
at Object.<anonymous> (F:\UPXP Projects\manager\openflow-manager\node_modules\raphael\raphael.min.js:1:196)
I also tried to use dynamic import in nextjs but still doesn't work
code
Unhandled Runtime Error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `Tables`.
i can't figute out whats happen and how to solve this problem, my confige is
_```
"raphael": "^2.3.0",
"react": "^17.0.2",
"next": "^12.0.8",
"react-raphael": "^0.9.0",
nodejs Version : v16.13.1
Hello guys, I am stuck in a problem of using react-raphael in nextjs project, i tried the way that shows in docs and show to me error of window is undefinied. code :
Error
I also tried to use dynamic import in nextjs but still doesn't work code
error :
i can't figute out whats happen and how to solve this problem, my confige is _``` "raphael": "^2.3.0", "react": "^17.0.2", "next": "^12.0.8", "react-raphael": "^0.9.0", nodejs Version : v16.13.1