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
Describe the bug
svelte2tsx doesn't type accessors when compiling using customElements: true. Using custom elements automatically enables accessors for all files, so those properties should be typed.
Setting accessors: true in your svelte.config.js file also doesn't work.
Describe the bug
svelte2tsx doesn't type accessors when compiling using
customElements: true
. Using custom elements automatically enables accessors for all files, so those properties should be typed.Setting
accessors: true
in yoursvelte.config.js
file also doesn't work.To Reproduce
Here's an example project: svelte-bug.zip
If you run
npm i
and try asvelte-check
you should get this error:The error goes away if you update line 1 of
src/Lib.svelte
to this:This is a reasonable workaround, but shouldn't be required.
The text was updated successfully, but these errors were encountered: