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

I need help. I am having trouble import the library #115

Open
Vuminhhieu3112k opened this issue Jul 11, 2023 · 2 comments
Open

I need help. I am having trouble import the library #115

Vuminhhieu3112k opened this issue Jul 11, 2023 · 2 comments

Comments

@Vuminhhieu3112k
Copy link

I have checked the path in the library is correct but it still gives me error
i use
"react-hexgrid": "2.0.1", "react": "18.2.0"
Screenshot 2023-07-12 at 02 09 37
Screenshot 2023-07-12 at 02 08 17

@TranVanKung
Copy link

if you use Nextjs, you could try:

const nextConfig = {
  transpilePackages: ['react-hexgrid'],
};
module.exports = nextConfig;

It works for me

@chinnuu05
Copy link

If we are using React/Vite then how would we resolve this issue?

Looks like a great library, but I can't import it :/

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

3 participants