Recently, we decided to build our own React-based query builder as none of the existing ones out in the wild were doing what we wanted. Awesome: ...
For further actions, you may consider blocking this person and/or reporting abuse
Stumbled upon this as well and it sucks. I got it "fixed" by aliasing
reactto./node_modules/my-cool-widget/node_modules/react🤢. Really hoped there'd be a better solution instead of switching to Webpack. I guess Parcel simply isn't suitable for these kind of things.Thanks for sharing!
Hey Stephan, I know, right! I was hoping to be able to use Parcel, and believe me I spent a lot of time trying different workarounds and even tried the recommendations on aliasing as recommended in Parcel's own documentation.
But it all came down to just switching over to Webpack :( (I don't have anything against Webpack, it's great, but a bit of overkill for what I needed!).
If anyone gets this thing solved using Parcel, then do share it, please! Prove me wrong Internet!
This was a very insightful article on the topic of creating components / packages that utilise React Hooks.
rollup is recommended for libraries