Open himself65 opened 2 years ago
I've created PR to address this
I am not sure if this package is supported, so I published my fork with these changes
npm i react-mosaic-component2@6.4.0
can we get this merged in? we're using nx patch
locally to get this working.
@nomcopter This is becoming a bigger and bigger issue as time goes on as a large chunk, if not most of industry has moved over to ESM. It would be great if you could check out either of the two PR proposals.
As a side note @Lonli-Lokli , Ive tried using your published fork and cant seem to get it working
@MrSimmmons you should remove /lib
from import path
@Lonli-Lokli That also fails and says that Mosaic
cant be found.
@MrSimmmons are you using webpack? If so, which version?
I think you are using legacy Webpack4, which does not support exports field
@Lonli-Lokli Im using nextjs 14 which uses webpack 5
@Lonli-Lokli Couldn't figure it out, did a computer restart and now its working.
The VSCode intenseness still tries to add the /lib
to the import. So I'm pretty sure something isn't set up properly there.
Yep, I will take a look next week when return home.
I had just browser project, didn't test with Node.
@MrSimmmons Can you try npm i react-mosaic-component2@6.13.0
?
Am away atm, will try it out when I get back around the 14th. Thanks for looking into this though!
Thanks for the work here all - I should have time to dive into this over the next couple weeks. My biggest priority finding a way to make it the least breaking for existing CJS users as possible and so need to get the right test repos up and running. Will check out the PRs and forks as well!
some update for myself, im using https://github.com/bvaughn/react-resizable-panels right now. even though it's more low level api but it's well maintained
Still on my list, but will likely be a few more weeks before I can get to this, thanks for your patience or I hope another lib works for you!