sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 514 forks source link

PNotify with Svelte 3 not working #374

Closed tonprince closed 4 years ago

tonprince commented 4 years ago

I got an error when trying to build my web component with Svelte version 3:

[!] (plugin svelte) ParseError: The ref directive is no longer supported — usebind:this={elem}instead node_modules/pnotify/src/PNotify.html

hperrin commented 4 years ago

The new version that’s in development will support Svelte 3. I’m hoping to get it out soon. At least in beta.

ilrico commented 4 years ago

in the meantime, with Svelte3 you can import like this way (ES6 version modified): import PNotify from 'pnotify/dist/es/PNotify.js' and in index.html also remove the first directory node_modules such as:
<link href="pnotify/dist/PNotifyBrightTheme.css" rel="stylesheet" type="text/css" />

@hperrin congrats for your work