zsajjad / react-facebook-pixel

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

Failed to parse source map: 'webpack://ReactPixel/fb-pixel.js' URL is not supported #109

Open AminRafaey opened 1 year ago

AminRafaey commented 1 year ago

I encountered a warning while using the react-facebook-pixel package in my React project. The warning message indicates a failure to parse the source map for the fb-pixel.js file. This warning persists even after updating dependencies and performing a clean reinstallation of the package.

WARNING in ./node_modules/react-facebook-pixel/dist/fb-pixel.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map: 'webpack://ReactPixel/fb-pixel.js' URL is not supported

tonganknight commented 11 months ago

Same issue.

lantosgyuri commented 10 months ago

Do you have a solutiion?

tonganknight commented 10 months ago

I've looked into this, and found that this is an outstanding issue with Facebook Pixel. I recommend we remove the react pixel package, and leverage the scripts with helmet instead.

This what we were doing with the LinkedIn pixel script.

This would do the following

-solve our source map issue -remove the warring from development -remove a third party package we do not need -match our code and keep our scripts uniform.

I'm currently working on our angular site. I believe Nazar Ozarko is working on our NSP React project right now.

I have mentioned these recommendations to him before.

On Wed, Sep 20, 2023, 8:27 AM György Lantos @.***> wrote:

Do you have a solutiion?

— Reply to this email directly, view it on GitHub https://github.com/zsajjad/react-facebook-pixel/issues/109#issuecomment-1727845567, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGAXOR7JO6Y6ZQY3LV7Y3DX3L4ORANCNFSM6AAAAAAZ5LXEKA . You are receiving this because you commented.Message ID: @.***>

lantosgyuri commented 10 months ago

thanks for the recommendation!

shivani805 commented 1 week ago

any solution so far?

nit5343 commented 5 days ago

Any updates ?