fix-imports-litelement

1.1.2 • Public • Published

fix-imports-litelement

Fix imports from lit-element.js library, when you don't use polymer-cli or other "magics" server.

If you see 'Uncaught TypeError: Failed to resolve module specifier "lit-html". Relative references must start with either "/", "./", or "../".' you can use fix-imports-litelement to fix them.

Install

npm install -g fix-imports-litelement

Use

cd my-webcomponent-folder
fix-imports-litelement

If your libraries needed to fix "/", "./", or "../" it shows something like:

lit-element
-----------------
fixed lit-element.js

lit-html
-----------------
nothing to do

If your libraries were good it shows something like:

lit-element 
----------------
nothing to do

lit-html 
----------------
nothing to do

Readme

Keywords

none

Package Sidebar

Install

npm i fix-imports-litelement

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

2.47 kB

Total Files

3

Last publish

Collaborators

  • manufosela