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
As referenced in previous issues (e.g. #1386) Volar currently does not correctly detect all HTML attributes while simultaneously detecting invalid ones.
Example that will throw an error when experimentalSuppressUnknownJsxPropertyErrors is disabled:
<divdata-test-id="root">
Root
</div>
Example that doesn't (but should) throw an error when experimentalSuppressUnknownJsxPropertyErrors is enabled:
<divfoo="bar">
Root
</div>
The correct functionality would be only foo throwing an error:
<divdata-test-id="root" foo="bar">
Root
</div>
The text was updated successfully, but these errors were encountered:
experimentalSuppressUnknownJsxPropertyErrors and experimentalSuppressInvalidJsxElementTypeErrors will be replace by strictTemplates in next version.
Volar currently does not correctly detect all HTML attributes while simultaneously detecting invalid ones.
When strictTemplates is true, all props / attrs is parse with Camel case as trade-off to avoid this problem, it mean you should always define props with Camel case on strict mode.
As referenced in previous issues (e.g. #1386) Volar currently does not correctly detect all HTML attributes while simultaneously detecting invalid ones.
Example that will throw an error when
experimentalSuppressUnknownJsxPropertyErrors
is disabled:Example that doesn't (but should) throw an error when
experimentalSuppressUnknownJsxPropertyErrors
is enabled:The correct functionality would be only
foo
throwing an error:The text was updated successfully, but these errors were encountered: