notiflix / Notiflix

Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
https://notiflix.github.io
MIT License
647 stars 55 forks source link

`The requested module ... does not provide an export named ...` #52

Closed KyGost closed 2 years ago

KyGost commented 2 years ago

The library works fine (really well, thanks!) as a global src but I'm trying to change to using it as a module import but getting errors no matter what I try.

Using 3.2.5, trying to import individual modules or the whole thing, from the full file, or individuals, all throws for some reason.

KyGost commented 2 years ago

3.2.0 doesn't work for me either.... not sure what I'm doing wrong:

import {Block} from '../notiflix/notiflix-block-aio-3.2.0.min.js'
furcan commented 2 years ago

https://github.com/notiflix/Notiflix#a-install-and-import

KyGost commented 2 years ago

https://github.com/notiflix/Notiflix#a-install-and-import

Is that to say that vanilla modules aren't supported...?

KyGost commented 2 years ago

I'll take lack of reply as a yes.

I'll make a new issue relating to that.

KyGost commented 2 years ago

Resolved via #54