> Can't use by node.js import in Next.js When I try to use by way of a Node.js import, I get an "ReferenceError: window is not defined" error in the browser and can't use it at all. It works fine when I load it by CDN in the head.
When I try to use by way of a Node.js import, I get an "ReferenceError: window is not defined" error in the browser and can't use it at all.
It works fine when I load it by CDN in the head.