I can not understand how to properly import the module?
Now like this:
import noty from 'noty' window.mindy = { notify: (text, type = 'success') => { noty({ text: text, type: type, theme: 'metroui', layout: 'topRight', timeout: false, progressBar: false, closeWith: ['click'], animation: { open: { height: 'toggle' }, close: { height: 'toggle' }, easing: 'swing', speed: 300, }, }) }, } But it gives an error
noty.js: 2349
function _classCallCheck(instance, Constructor) { if (! (instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } noty.js: 2359
_classCallCheck(this, Noty) 