Skip to content Skip to sidebar Skip to footer

How To Implement Lit-element-bootstrap Package In Lit-lement

I would like to implement lit-element-bootstrap package in lit-element. I am getting following error in console, Failed to load module script: The server responded with a non-JavaS

Solution 1:

The URL you are trying to import from is getting redirected (302). Current URL: https://unpkg.com/@polymer/lit-element/lit-element.js?module Try changing it to: https://unpkg.com/@polymer/lit-element@0.7.1/lit-element.js?module Not sure if you should be loading it from this URL always, you can download the file and import it from your directory, rather than downloading it from this new URL. As this new URL can also change in future.

Solution 2:

lit-element has been updated, the correct link would be https://unpkg.com/lit-element or if you want to specify the extension https://unpkg.com/lit-element/lit-element.js

Post a Comment for "How To Implement Lit-element-bootstrap Package In Lit-lement"