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

I need help. I am having trouble import the library

Open Vuminhhieu3112k opened this issue 3 years ago • 2 comments

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

Vuminhhieu3112k avatar Jul 11 '23 19:07 Vuminhhieu3112k

if you use Nextjs, you could try:

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

It works for me

TranVanKung avatar Aug 12 '23 19:08 TranVanKung

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

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

chinnuu05 avatar Sep 12 '24 18:09 chinnuu05