forcedotcom / lwc-dev-server-feedback

LWC Local Development
BSD 3-Clause "New" or "Revised" License
45 stars 10 forks source link

LDS does not render components with extended class #78

Open deb761 opened 4 years ago

deb761 commented 4 years ago

Describe the bug LWC that use a locally extended class in the JavaScript file are not shown in the list of components. Also, the base class is listed, but does not render without the default tag in the definition.

To Reproduce Steps to reproduce the behavior:

  1. Define LWC components: baseObject, derivedObject
<template>
    <p>This is base object {data.postId}</p>
</template>
import { LightningElement, api } from 'lwc';

export class BaseObject extends LightningElement {
    @api data = {
        "postId": "6b1820cf-ce22-461c-a692-bc3f537121c4",
        "title": "CORONAVIRUS: Resources for Executives and Communicators",
        "description": "Information To Help Guide You Through A Challenging Time",
   };
}```

```html
<template>
    <p>This is derived object {data.postId}</p>
</template>
import { BaseObject} from 'c/baseObject';

export default class DerivedObject extends BaseObject {

}
  1. Go to 'http://localhost:3333/'
  2. Observe that baseObject is in the list of components, but derivedObject is not.
  3. Click on 'baseObject'
  4. Observe the spinner running forever

Expected behavior baseObject and derivedObject are in the list of components, and both are clickable. Clicking on baseObject renders the object. Clicking on derivedObject renders the derived object.

Screenshots baseObject "render" (called base-post here)

image

Desktop:

stale[bot] commented 4 years ago

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

git2gus[bot] commented 4 years ago

This issue has been linked to a new work item: W-8182126