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
648 stars 55 forks source link

SOLVED: Notiflix import error #8

Closed jonatandorozco closed 5 years ago

jonatandorozco commented 5 years ago

I'm trying to use Notiflix from Vue. When I import the library and I try to use it I get this error:

vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read property 'Sucess' of undefined at VueComponent.createTicket (InsertDocument.vue?dbea:111) at click (eval at ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0ed0ee4a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/InsertDocument.vue?vue&type=template&id=580a65ae&scoped=true& (0.js:23), :133:35) at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854) at HTMLDivElement.invoker (vue.runtime.esm.js?2b0e:2179) at HTMLDivElement.original._wrapper (vue.runtime.esm.js?2b0e:6911)

I'm using it in this way:

Notiflix.Notify.Sucess('Turno generado')

"notiflix": "^1.9.1"

furcan commented 5 years ago

Hi,

Firstly thanks for using Notiflix.

You have to choose one of these version of Notiflix(ES6). https://github.com/notiflix/Notiflix-React https://github.com/notiflix/Notiflix-Angular

This version of Notiflix doesn't support import methods.

Thanks.

Marian-Amoah commented 1 year ago

Hi,

Firstly thanks for using Notiflix.

You have to choose one of these version of Notiflix(ES6). https://github.com/notiflix/Notiflix-React https://github.com/notiflix/Notiflix-Angular

This version of Notiflix doesn't support import methods.

Thanks.

The link is not working

furcan commented 1 year ago

It is deprecated. This library is the only option for now. Thanks.