-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Friendlier Errormessage when trying to use style directive on components #7177
Labels
Comments
3.46.4 now gives a friendlier error - "Style directives cannot be used on components" |
himanshiLt
pushed a commit
to himanshiLt/svelte
that referenced
this issue
Mar 3, 2022
nevilm-lt
pushed a commit
to nevilm-lt/svelte
that referenced
this issue
Mar 14, 2022
nevilm-lt
pushed a commit
to nevilm-lt/svelte
that referenced
this issue
Apr 21, 2022
nevilm-lt
pushed a commit
to nevilm-lt/svelte
that referenced
this issue
Apr 21, 2022
nevilm-lt
pushed a commit
to nevilm-lt/svelte
that referenced
this issue
Apr 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
Currently, when trying to use style directives (
style:color="red"
for example), an generic errormessageNot implemented: StyleDirective
gets printed out and the compiler stops.For more details on this, see #7176 .
Describe the proposed solution
An friendlier errormessage, that informs the user more precisely that style directive are currently not supported on components. Additionaly, the languageserver should be able to put the error-indicator onto the directive that causes the error.
Alternatives considered
Implementing style directives; but as already stated in #7176, its currently unknown when and how support will be added.
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: