-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialog Alert won't close due to: Uncaught (in promise) TypeError: resolve is not a function #124
Comments
The doc and demo was outdated. I have just updated the doc link. |
Thank you! The documentation demo (at the adress you provided) is working. |
You could link with git main branch instead of using 0.4.5
|
Build from local git is also fine
During pack svelma-0.4.5.tgz is created in project root. Copy svelma-0.4.5.tgz to the root of your project and do following (don't forget to unlink if it was linked as suggested in previous comment):
|
Any update on this? The public version seems to be still broken. |
How to reproduce:
Dialog won't close, console output:
Uncaught (in promise) TypeError: resolve is not a function
at
HTMLButtonElement.confirm (Dialog.svelte:146)
Dialog.svelte:146
resolve(hasInput ? prompt: true)
Dialog.svelte:85-87
// export let showClose = true
let resolve
// export let promise = new Promise((fulfil) => (resolve = fulfil))
The text was updated successfully, but these errors were encountered: