Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manufosela/fix-imports-litelement
Fix imports without ./, ../, / in the lit-element.js module and others
https://github.com/manufosela/fix-imports-litelement
Last synced: about 1 month ago
JSON representation
Fix imports without ./, ../, / in the lit-element.js module and others
- Host: GitHub
- URL: https://github.com/manufosela/fix-imports-litelement
- Owner: manufosela
- Created: 2019-04-18T17:33:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-18T18:16:38.000Z (over 5 years ago)
- Last Synced: 2023-12-26T01:06:23.692Z (12 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.jslit-html
-----------------
nothing to do```
If your libraries were good it shows something like:
```
lit-element
----------------
nothing to dolit-html
----------------
nothing to do```