prashantpalikhe / nuxt-ssr-lit

SSR support for Lit elements in Nuxt3
Other
42 stars 7 forks source link

@property decorator in Lit does not work in Nuxt 3 application #129

Closed vijayshekhawat closed 2 months ago

vijayshekhawat commented 3 months ago

If I try to use the property annotation in my ts file like @property({ type: String }) name = "vijay";

template

${this.name}

I get the below error. I am able to run the file using static properties though

Error cause: { statusMessage: 'Vite Error', message: '[vite-node] [PARSE_ERROR] /wc/Sidebar.ts', stack: '[vite-node] [PARSE_ERROR] /wc/Sidebar.ts\nat /wc/Sidebar.ts' }, statusCode: 500, fatal: false, unhandled: false, statusMessage: 'Vite Error', data: undefined

prashantpalikhe commented 3 months ago

Hi @vijayshekhawat

Can you please create a simple reproduction of the issue?

And, do you get the issue when using property decorator but other decorator like @state works fine?

prashantpalikhe commented 2 months ago

Closing because of inactivity