Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using minimized version does not work #1641

Open
robodna opened this issue Jun 26, 2024 · 3 comments
Open

Using minimized version does not work #1641

robodna opened this issue Jun 26, 2024 · 3 comments

Comments

@robodna
Copy link

robodna commented Jun 26, 2024

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
Copy link
Collaborator

diesieben07 commented Jun 26, 2024

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
Copy link
Author

robodna commented Jul 2, 2024

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
Copy link
Author

robodna commented Jul 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants