Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MetaCorp opened this issue Jun 29, 2022 · 1 comment
Open

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

MetaCorp opened this issue Jun 29, 2022 · 1 comment

Comments

@MetaCorp
Copy link

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 MetaCorp changed the title "Error: Invalid hook call" when trying to build locally "Error: Invalid hook call" when trying to run locally Jun 29, 2022
@fkhadra
Copy link
Owner

fkhadra commented Nov 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants