# Lottie-player console error: main 'lit-element' module entrypoint is deprecated

**URL:** <https://forum.lottiefiles.com/t/lottie-player-console-error-main-lit-element-module-entrypoint-is-deprecated/5576>\
**Category:** LottieFiles Website\
**Created:** [April 12, 2024, 7:54am UTC](https://forum.lottiefiles.com/t/lottie-player-console-error-main-lit-element-module-entrypoint-is-deprecated/5576 "2024-04-12T07:54:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric3](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/eric3/32/2816_2.png) [@Eric3](https://forum.lottiefiles.com/u/Eric3)\
**Post date:** [April 12, 2024, 7:54am UTC](https://forum.lottiefiles.com/t/lottie-player-console-error-main-lit-element-module-entrypoint-is-deprecated/5576/1 "2024-04-12T07:54:32Z")

</div>

Hello everybody,

My lottie animation works but I get this console error:

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 [Upgrade guide – Lit](https://lit.dev/msg/deprecated-import-path) for more information.  
(anonymous) @ tgs-player.js:53  
(anonymous) @ tgs-player.js:1  
(anonymous) @ tgs-player.js:1

My code:

Can I ignore this or should I do something with this?

Thanks in advance for any help!

Eric

---

<div class="post-metadata">

**Author:** ![Ryan4](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/ryan4/32/2816_2.png) [@Ryan4](https://forum.lottiefiles.com/u/Ryan4)\
**Post date:** [April 15, 2024, 9:29am UTC](https://forum.lottiefiles.com/t/lottie-player-console-error-main-lit-element-module-entrypoint-is-deprecated/5576/2 "2024-04-15T09:29:53Z")

</div>

> [@Eric3](#):
>
> Hello everybody,
> 
> My lottie animation works but I get this console error:
> 
> 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 Upgrade guide for more information.  
> (anonymous) @ tgs-player.js:53  
> (anonymous) @ tgs-player.js:1  
> (anonymous) @ tgs-player.js:1
> 
> My code:
> 
> Can I ignore this or should I do something with this?
> 
> Thanks in advance for any help!
> 
> Eric

Hello, @Eric3

The console error you’re seeing is a warning about the deprecation of the main lit-element module entrypoint. It’s recommended to address this warning because, while your code may currently work, future updates to the lit package could potentially break your application if it relies on deprecated features.

Here’s what you should do:

Update your imports to use the new lit package instead of lit-element.  
Replace imports from lit-element with lit and lit/decorators.ts, or import directly from lit-element/lit-element.ts if needed.  
For example, change:

import { LitElement, html } from ‘lit-element’;

To

import { LitElement, html } from ‘lit’;  
import { customElement } from ‘lit/decorators.js’;

This update ensures that your application remains compatible with future releases of the lit library. It’s part of maintaining the codebase to keep up with the evolving ecosystem. Ignoring the warning could lead to more significant issues down the line, so it’s best to update your code accordingly.

---

<div class="post-metadata">

**Author:** ![Ryan4](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/ryan4/32/2816_2.png) [@Ryan4](https://forum.lottiefiles.com/u/Ryan4)\
**Post date:** [April 17, 2024, 3:55am UTC](https://forum.lottiefiles.com/t/lottie-player-console-error-main-lit-element-module-entrypoint-is-deprecated/5576/3 "2024-04-17T03:55:31Z")

</div>

[quote=“Ryan4 [ADP Vantage](https://www-adpvantage.com), post:2, topic:5576”]  
Hello, @Eric3

The console error you’re seeing is a warning about the deprecation of the main lit-element module entrypoint. It’s recommended to address this warning because, while your code may currently work, future updates to the lit package could potentially break your application if it relies on deprecated features.

Here’s what you should do:

Update your imports to use the new lit package instead of lit-element.  
Replace imports from lit-element with lit and lit/decorators.ts, or import directly from lit-element/lit-element.ts if needed.  
For example, change:

import { LitElement, html } from ‘lit-element’;

To

import { LitElement, html } from ‘lit’;  
import { customElement } from ‘lit/decorators.js’;

This update ensures that your application remains compatible with future releases of the lit library. It’s part of maintaining the codebase to keep up with the evolving ecosystem. Ignoring the warning could lead to more significant issues down the line, so it’s best to update your code accordingly.  
[/quote]

Hello, @Eric3

I hope my suggestion is helpful for you.

Best Regard,  
Ryan1969

---

<div class="post-metadata">

**Author:** ![Eric3](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/eric3/32/2816_2.png) [@Eric3](https://forum.lottiefiles.com/u/Eric3)\
**Post date:** [April 17, 2024, 6:29am UTC](https://forum.lottiefiles.com/t/lottie-player-console-error-main-lit-element-module-entrypoint-is-deprecated/5576/4 "2024-04-17T06:29:38Z")

</div>

Thanks for the reply Ryan! I will try this.
