You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While your solution looks good on first sight, when you look closer, I think it does the wrong thing – namely it injects the script if it's initialized (as evidenced by the if (initialized) wrapper).
So if anything, I think you'd need to adapt it to handle the check for window separately of initialization:
This issue was fixed with a simple window !== 'undefined' check in a couple places. as this project seems dead to the owner I forked and updated my own version feel free to use it if you have the same problem:
https://github.com/jacobknighj12/react-facebook-pixel
yarn upgrade react-facebook-pixel@https://github.com/jacobknighj12/react-facebook-pixel.git
The text was updated successfully, but these errors were encountered: