Uncaught TypeError: Cannot read property 'document' of undefined
It seems it's something related with the scope, not sure. When I modified it to export the main function it doesn't throw any error, but then got lots of other kind of errors because the library is not working properly after that big change (sure cuz I removed the main scope and export the main function directly)
When I'm trying to load it:
Got this error on the browser console:
It seems it's something related with the scope, not sure. When I modified it to export the main function it doesn't throw any error, but then got lots of other kind of errors because the library is not working properly after that big change (sure cuz I removed the main scope and export the main function directly)
Any ideas ?