0

I am using [email protected]

When building my typescript component it adds this as the my-component.d.ts:

render(): import("lit-html").TemplateResult<1> | undefined;

Problem is that this throws an error:

 error TS2315: Type 'TemplateResult' is not generic.

I am using [email protected]

Can anyone tell me why this is happening ?

2
  • Did you try to update lit? Commented Dec 7, 2023 at 16:32
  • works for me: tsplay.dev/N9Y0JN maybe lit-html is outdated Commented Dec 7, 2023 at 18:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.