Stanko / react-animate-height

Lightweight React component for animating height using CSS transitions. Slide up/down the element, and animate it to any specific height.
https://muffinman.io/react-animate-height
MIT License
756 stars 53 forks source link

import not allowed in non-module files #143

Closed awdyson closed 1 year ago

awdyson commented 1 year ago

It appears a package.json with "type": "module" was removed from dist/esm. Looks like you replaced piping an echo into a new file with a `post-build script -- then removed the script.

Possible Solution The old echo statement worked, and I'm going to guess the post-build script worked as well. Alternatively, you could name the file index.mjs.

Screenshots image

Stanko commented 1 year ago

Hi @awdyson,

I removed two package.json files to resolve this issue: https://github.com/Stanko/react-animate-height/issues/140

But broke this in the process. There is so many use-cases in JS world to cover today. I’ll try renaming the file later today and hopefully that will fix it.

Cheers!

Stanko commented 1 year ago

Can you please tell me which setup are you using? I can't replicate the issue on my side, so I want to be sure I'm fixing the right thing. Thanks!

Stanko commented 1 year ago

I just published v3.2.2 which I hope will resolve the issue. Please let me know if it works.

awdyson commented 1 year ago

Yep, that solution works for my setup, thank you very much.


There is so many use-cases in JS world to cover today.

You are not kidding 😶