react-hotjar icon indicating copy to clipboard operation
react-hotjar copied to clipboard

hotjar.initialize Expected 1 arguments, but got 2

Open sergei-lobanov opened this issue 1 year ago • 2 comments

Updating from 6.2.0 to 6.3.1 I see the next issue

TS2554: Expected 1 arguments, but got 2. 47 | }); 48 |

49 | hotjar.initialize(Number(process.env.REACT_APP_HOTJAR_ID), 6); | ^ 50 | 51 | // Initialize Sentry instance before React 52 | initializeSentry();

In the absence of a changelog, it's difficult to determine definitively whether this is a breaking change and something should be changed in the code above or its a bug? 

sergei-lobanov avatar Apr 12 '24 17:04 sergei-lobanov

Sad to see breaking changes getting merged into minor releases.

hotjar.initialize({ id: Number(process.env.REACT_APP_HOTJAR_ID), sv: 6 });

arifszn avatar Apr 13 '24 05:04 arifszn

PR's are welcome, be my guest to fix.

abdalla avatar Apr 24 '24 13:04 abdalla