Closed birksy89 closed 8 months ago
Wow! I'm working on the exact same thing at this moment. It worked without hickups with Chonky, but with this fork I have to load it dynamically...
Haha, I'm glad I commented then - I almost just moved on with my day.
I didn't start with the original "Chonky" - I just spotted that people said that this fork existed and was more recently updated, so chose this.
I've just this second tried to add a custom action as defined here: https://chonky.io/docs/2.x/file-actions/custom-actions
But I couldn't get it to work "dynamically" - So I've also now installed the original Chonky, just to get this working.
Was there a reason you moved away from the original Chonky? I was just wondering if I'd made a mistake choosing this version ?
Maybe for my needs the basic/original one would work fine?
So I'm trying to upgrade my version of Next.js. We use MUI in our project, but things get really funky with a newer version of material ui and chonky. So right now we have both mui v4 and the old material-ui as dependencies in our project, which is not very good. You can see it in actions on our website
I'm trying to import other things like ChonkyActions and FileHelper but I just can't get it to work.
PS. it's all open source, feel free to take a look https://github.com/Dsek-LTH/member-page
@oliverlevay @birksy89 There seem to be both cjs and esm versions in dist/. I'm not familiar with the "dts" build system used here. Might migrate off of it to esbuild instead soon.
Using esbuild now. It should work!
Hello, thanks for forking this and keeping it updated...
I have just managed to get this working in my project, but I'm not sure if it's done in the best way.
I had to import the library "dynamically" as it was complaining about ESM:
I got it working by adding it like this:
Any advice would be greatly appreciated, thanks again!