zsajjad / react-facebook-pixel

React JS wrapper for Facebook's Pixel
MIT License
233 stars 86 forks source link

window is not initialized issue #110

Open jacobknighj12 opened 4 months ago

jacobknighj12 commented 4 months ago

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

f2016862 commented 3 months ago

Thanks this fixed the issue