fisshy / react-scroll

React scroll component
https://github.com/fisshy/react-scroll/blob/master/README.md
MIT License
4.36k stars 437 forks source link

Uncaught SyntaxError: Identifier '__scdnguid' has already been declared #544

Open ouija opened 1 year ago

ouija commented 1 year ago

Hey,

I'm a relative newcomer to using this plugin (and React in general, for that matter) but I noticed that when running a production build of my application that makes use of the hashSpy={true} option for my <Scrolllink> elements, I keep getting a Uncaught SyntaxError: Identifier '__scdnguid' has already been declared error whenever it scrolls from one <Scrolllink> element with hashSpy={true} to another. This does not occur when running a development build with Node.js.

If I disable hashSpy={true}, the issue is gone. Not quite sure what I'm doing wrong, or if I'm honest, really what I'm doing in general, but I'm faking it until I make it for now, and this issue is currently the only problem occuring in my newly created React app