Eliav2 / react-xarrows

Draw arrows (or lines) between components in React!
https://codesandbox.io/embed/github/Eliav2/react-xarrows/tree/master/examples?fontsize=14&hidenavigation=1&theme=dark
MIT License
584 stars 75 forks source link

Can't build gatsby with react-xarrows #79

Closed Assitan closed 3 years ago

Assitan commented 3 years ago

Describe the bug & Expected behavior I try to build my gatsby.js project and it doesn't work with this module. When I remove the code the build is working. I set a rule for webpack without any success. Can you help me ?

EDIT :

So I copied the repo in my project and the problem is with this line :

const pRefType = PT.oneOfType([PT.string, PT.exact({ current: PT.instanceOf(Element) })]);

Screenshot from 2021-07-08 01-49-34

Do you have any idea how can I fix this ?

To Reproduce Add the module in a gatsby project and try build it.

Screenshots

Screenshot from 2021-07-08 01-24-46 Screenshot from 2021-07-08 01-25-00 Screenshot from 2021-07-08 01-25-17

Eliav2 commented 3 years ago

Thank you for the detailed description. Will look into that.

Eliav2 commented 3 years ago

great thank @Assitan for your very detailed issue!