Namani Supriya
Namani Supriya

Reputation: 71

@polymer/lit-element has been deprecated

I am using @polymer/lit-element for my application.Recently I did npm install which led to following error

"npm WARN deprecated @polymer/[email protected]: @polymer/lit-element has moved to lit-element. Please uninstall this package and install lit-element. See https://www.polymer-project.org/blog/2019-01-11-lit-element-rc".

When I checked my node_modules, the lit-element folder had been deleted from @polymer folder.Is there any way that I can get back my @polymer/lit-element? ( Apart from the point that I have to migrate whole my application to lit-element which sounds tedious )

Upvotes: 1

Views: 1003

Answers (1)

abraham
abraham

Reputation: 47833

npm WARN deprecated @polymer/[email protected] is a warning not an error. v0.5.2 is still available for use. You can npm install to install the dependencies listed in your package.json or if @polymer/lit-element is not listed in in package.json you can add it with npm install --save @polymer/[email protected].

That being said @polymer/lit-element is deprecated and being replaced with lit-element. You should replace @polymer/lit-element with lit-element within package.json and your codebase.

Upvotes: 6

Related Questions