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

"Error: Invalid hook call" when trying to run locally

Open MetaCorp opened this issue 3 years ago • 1 comments

Do you want to request a feature or report a bug? bug

What is the current behavior? I'm trying to install react-contexify locally. I have forked and clone the repo to my project.

After rendering the lib in a React Component like in the example, I get this error : image

I have checked if I had multiple versions of React running using npm ls react and all are 18.1.0 I have also checked for React-dom version and all are also 18.1.0

I tried importing it from /src as well as from /dist without success in both cases.

Am I missing something related to installation or import ?

MetaCorp avatar Jun 29 '22 08:06 MetaCorp

Hey I think something is off with your setup, if you share a repo I could maybe help

fkhadra avatar Nov 03 '22 19:11 fkhadra