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
While troubleshooting an issue where hover was consistently throwing an error, it was discovered that the root cause was coming from components using a Navigation Mixin. Those components are not providing information as they should. The root cause appears to be that we're incorrectly saving the customComponents.json index, but I didn't get much further while troubleshooting because #time.
@randi274 I've been experiencing this issue as well, but when developing components that apply OmniscriptBaseMixin to LightningElement.
lwc-language-server uses @lwc/[email protected] - this version of the compiler doesn't recognise components that apply a Mixin to LightningElement as class components.
The latest version of the compiler seems to recognise a wider variety of class supertypes as valid components.
Thanks for chiming in! Updating lwc/compiler is on our short-term road map, so we're hoping to address these issues soon, and we'll add OmniscriptBaseMixin to our tests.
Summary
While troubleshooting an issue where hover was consistently throwing an error, it was discovered that the root cause was coming from components using a Navigation Mixin. Those components are not providing information as they should. The root cause appears to be that we're incorrectly saving the customComponents.json index, but I didn't get much further while troubleshooting because #time.
Steps To Reproduce:
t.classMembers.forEach(cm => {
line.Expected result
Components with Navigation Mixin should provide information like attribute and properties available.
Actual result
There was no className information available, causing an error downstream and not being included as helpful information.
Additional information
Example component not using NavigationMixin:
Example component using NavigationMixin:
The text was updated successfully, but these errors were encountered: