Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The main 'lit-element' module entrypoint is deprecated. #95

Closed
Olen opened this issue Jan 4, 2024 · 5 comments · Fixed by #147
Closed

The main 'lit-element' module entrypoint is deprecated. #95

Olen opened this issue Jan 4, 2024 · 5 comments · Fixed by #147

Comments

@Olen
Copy link
Owner

Olen commented Jan 4, 2024

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.

$ grep -R lit *
editor.ts:import { customElement, html } from "lit-element";
flower-card.ts:import { CSSResult, HTMLTemplateResult, LitElement, customElement, html, property } from 'lit-element';
styles.ts:import { css } from 'lit';
utils/attributes.ts:import { TemplateResult, html } from "lit-element";
utils/attributes.ts:import { unsafeHTML } from 'lit/directives/unsafe-html.js';

@shennig84
Copy link

How do we do this?

@chemelli74
Copy link
Contributor

Just noticed on my side as well:

image

@Olen
Copy link
Owner Author

Olen commented Apr 5, 2024

I am in no way an expert on ts, js or all these magic things. There seems to be some changes that probably needs to be taken care of.

https://lit.dev/docs/v2/releases/upgrade/

If anyone feel up for it, please create a PR

@chemelli74
Copy link
Contributor

What about updating the components to the last version ?
Ref. lit/lit#4663

@chemelli74
Copy link
Contributor

chemelli74 commented Oct 3, 2024

Created a PR with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants