I have installed lit package via npm, then i replaced my-element.ts file with my own .ts file and also updated the package.json file with the new .ts file
`import { LitElement,html,css } from "lit"; import { customElement, property } from "lit/decorators";
@customElement('sample_project')
export class SampleProject extends LitElement {
static styles = cssp {color:blue}
;
@property()
name = 'Intro';
render(){
return html`<p>Hello, ${this.name}!</p>`;
}
}`
I tried running the component on local host with npm run dev, I get an error that says it's missing ./decorators specifier in 'lit' package but weird because I have installed web dev server npm to try to solve the problem.
expecting this to run and render Hello intro only, very basic