-
So, I was not sure if this was an issue or I was doing something wrong so I am posting it here. I have have implemented a whiteboard to my nexjs app using error - ReferenceError: window is not defined
at Object.<anonymous> (/Users/dy/Desktop/PROJECTS/retro-1984/node_modules/@tldraw/tldraw/dist/index.js:76:31053)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
..... I checked the referenced module and it's line with I forked the project, couldn't find that reference to So I was wondering if anyone else have encountered this? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 6 replies
-
Quick Update: I was able to fix the issue by dynamically importing the component which renders Tldraw. |
Beta Was this translation helpful? Give feedback.
-
@davlet61 Hi~ i have same question about next.js with this issue. Thank you. |
Beta Was this translation helpful? Give feedback.
Quick Update:
I was able to fix the issue by dynamically importing the component which renders Tldraw.