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

Custom notification component example throws error in vscode #56

Closed
ghost opened this issue Feb 13, 2022 · 2 comments
Closed

Custom notification component example throws error in vscode #56

ghost opened this issue Feb 13, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2022

I am using Svelte-kit with Typescript and tried the custom notification component from the README with the only difference that I have the component in the layout file. I am using version 0.9.93 of svelte-notifications.

The code seems to work, I can trigger the custom notification component but I get an error in vscode.

Red error text under CustomNotification
<Notifications item={CustomNotification}>

If I hover over CustomNotification it logs the following to the vscode output:
Request textDocument/hover failed. Message: Request textDocument/hover failed with message: EISDIR: illegal operation on a directory, read Code: -32603

The hover text says:
Type 'typeof CustomNotification__SvelteComponent_' is missing the following properties from type 'SvelteComponentDev': $set, $on, $destroy, $$prop_def, and 5 more.

@ghost ghost closed this as completed Feb 14, 2022
@enriquecastill0
Copy link

Were you able to solve this? I'm having the same issue

@ghost
Copy link
Author

ghost commented Mar 25, 2022

No, I never found a solution. I just ignore the warning for now and the code does work. I will re-open the issue and hopefully someone knows or can fix.

@ghost ghost reopened this Mar 25, 2022
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

2 participants