Skip to content
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

Does it support typescript? #25

Open
shaozi opened this issue Jul 13, 2021 · 3 comments
Open

Does it support typescript? #25

shaozi opened this issue Jul 13, 2021 · 3 comments

Comments

@shaozi
Copy link

shaozi commented Jul 13, 2021

I use typescript with Sveltekit and it gives run time error:

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: .../node_modules/@beyonk/svelte-notifications/index.js
require() of ES modules is not supported.
@metayii
Copy link

metayii commented Aug 12, 2021

I get this error even in JS, not TS.

@antony
Copy link
Member

antony commented Aug 19, 2021

This is a vite thing. You probably need to install it in devDeps, or not devDeps. whatever works.

@v79
Copy link

v79 commented Feb 17, 2023

I find it works with Typescript, but VSCode doesn't like the options parameter.

notifier.danger('Error saving: ' + error, { persist: true });

VSCode underlines { persist: true} because I haven't supplied a number for the duration.

I wish there was more control over positioning/styling. I may have to fork this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants