You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just set up a small svelte app and in that app I am creating a new Event('submit') to be able to trigger my form's on:submit handler. It all works fine and dandy but when I build it I get this message:
rollup v1.25.2
bundles src/index.js → dist/bundle.js...
LiveReload enabled
http://localhost:5000 -> /Users/joxtacy/PrivateProjects/try-out-svelte/dist
(!) Plugin svelte: 'Event' is not defined
src/Todos.svelte
46: </label>
47: <div class="add-button"
48: on:click={() => form.dispatchEvent(new Event("submit"))}
^
49: >
50: {@html addItem(newTask ?"#000000":"#999999")}
created dist/bundle.js in 1.8s
[2019-10-27 12:29:12] waiting for changes...
Seeing as Event is a global constructor, it should not give me a warning that Event is not defined.
I just set up a small svelte app and in that app I am creating a
new Event('submit')
to be able to trigger my form'son:submit
handler. It all works fine and dandy but when I build it I get this message:Seeing as
Event
is a global constructor, it should not give me a warning thatEvent
is not defined.Here is my
rollup.config.js
:The text was updated successfully, but these errors were encountered: