moment / luxon

⏱ A library for working with dates and times in JS
https://moment.github.io/luxon
MIT License
15.05k stars 730 forks source link

Using minimized version does not work #1641

Open robodna opened 1 week ago

robodna commented 1 week ago

Followed the ES6 install instructions by downloading the luxon.min.js and DateTime.fromSeconds did not work. Using the non-minified version did work.

Why does the ES6 install not use npm to install? Do I manually re-download the luxon file each time there is an update?

diesieben07 commented 1 week ago

Both the installation instructions and the build process are a bit outdated at this point. You should just install Luxon from NPM and you will get ES6.

What I forgot to add... yes it looks like the ES6 minified build is broken, because the class names are minified.

robodna commented 3 days ago

Ok thanks. I'll try installing using NPM again but for some reason, it did not 'find' the luxon library using autocomplete in VisualCode when I tried to import it... not being detected in the nodes packages folder for some reason...

Thanks!

robodna commented 7 hours ago

I installed the @types/luxon and all is working in ES6 now.