You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flagon.apache.org by GitBox <gi...@apache.org> on 2021/05/01 01:42:33 UTC

[GitHub] [incubator-flagon-useralejs] poorejc opened a new issue #87: Next.js Users having difficulty with UserALE.js

poorejc opened a new issue #87:
URL: https://github.com/apache/incubator-flagon-useralejs/issues/87


   Next.js doesn't have a concept of 'window'. If embedded as a script-tag, UserALE.js attaches as an object to the window object. If embedded as an npm module, it will throw errors given that some of the listeners and properties UserALE.js references depend on window. 
   
   There are a few simple workarounds to this issue: https://frontend-digest.com/why-is-window-not-defined-in-nextjs-44daf7b4604e
   
   Some users have difficult with solution three at the above link.
   
   Would be good to find the best approach and include in documentation


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #87: Next.js Users having difficulty with UserALE.js

Posted by GitBox <gi...@apache.org>.
poorejc commented on issue #87:
URL: https://github.com/apache/incubator-flagon-useralejs/issues/87#issuecomment-843657962


   Can be fixed with an example.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org