iantrich / config-template-card

📝 Templatable Lovelace Configurations
MIT License
434 stars 56 forks source link

lit-element entrypoint is deprecated #91

Open Petro31 opened 2 years ago

Petro31 commented 2 years ago

Checklist:

Release with the issue: 2021.12

Last working release (if known): blah

Browser and Operating System: chrome

Description of problem:

You're using a deprecated entrypoint.

Javascript errors shown in the web inspector (if applicable):

config-template-card.js:329 The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information.

Additional information:

johntdyer commented 2 years ago

same issue

ildar170975 commented 2 years ago

Sometimes I experience cases "the card inside the config-template-card is NOT updated". Could it be related to the issue?

keith-frank commented 2 years ago

same here

Mariusthvdb commented 1 year ago

Since this cards seems no longer maintained, and the warning is here for over 1.5 years now : had a look if this is something we can manually edit ourselves, like it was done in several other cards. That is a bit too complex. There is no real import of the Lit in the first place...? Is it done via the card-tools?

This just seems to be a console.log which is hardcoded in this resource, without anything further. It simply logs it.

Wonder if we should just 'comment' that console log I the resource. And be done with it.

Havent found an issue yet, and cleans up the inspector log just nicely...

Scoff123 commented 1 year ago

Since this cards seems no longer maintained, and the warning is here for over 1.5 years now : had a look if this is something we can manually edit ourselves, like it was done in several other cards. That is a bit too complex. There is no real import of the Lit in the first place...? Is it done via the card-tools?

This just seems to be a console.log which is hardcoded in this resource, without anything further. It simply logs it.

Wonder if we should just 'comment' that console log I the resource. And be done with it.

Havent found an issue yet, and cleans up the inspector log just nicely...

Thanks for this, I didn't realise this console.log was hardcoded in the resource, but I see it there now. Have you experienced any issues since commenting it out in the resource?

clinds34 commented 5 months ago

Is it as simple as updating the dependanies to 3.0?

i4mr000t commented 5 months ago

Since this cards seems no longer maintained, and the warning is here for over 1.5 years now : had a look if this is something we can manually edit ourselves, like it was done in several other cards. That is a bit too complex. There is no real import of the Lit in the first place...? Is it done via the card-tools?

This just seems to be a console.log which is hardcoded in this resource, without anything further. It simply logs it.

Wonder if we should just 'comment' that console log I the resource. And be done with it.

Havent found an issue yet, and cleans up the inspector log just nicely...

Could you please describe which line to comment out?

Edit: Do you mean this line(329)?

console.warn("The main 'lit-element' module entrypoint is deprecated. Please update your imports t....

i commented it out but inspector message is still there