lit-html missing when installing web_components
See original GitHub issueDescribe the bug
When running npx -p @storybook/cli sb init -t web_components
The documentation says some dependencies are installed, but they aren’t
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Code snippets
npm WARN @storybook/web-components@5.3.6 requires a peer of lit-html@^1.0.0 but none is installed. You must install peer dependencies yourself.
System:
Environment Info:
System:
OS: macOS 10.15.2
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Binaries:
Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.13.6 - ~/.nvm/versions/node/v12.13.1/bin/npm
Browsers:
Chrome: 79.0.3945.117
Firefox: 72.0.1
Safari: 13.0.4
npmPackages:
@storybook/web-components: ^5.3.6 => 5.3.6
npmGlobalPackages:
@storybook/cli: 5.3.5
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Lit not working, not giving back anything from the custom web ...
In the documentation it states that you just need to run the command "npm i lit" on the folder of your project and...
Read more >lit-html - npm
lit -html is the template system that powers the Lit library for building fast web components. When using lit-html to develop web components, ......
Read more >Build for production - Lit.dev
The index.html file loads all of the bundles in the correct order: The Babel polyfills bundle. The Web Components polyfill loader, which performs...
Read more >Getting started - Lit.dev
To create a reusable component project, see Create a LitElement component project. ... Then clone your new repository and install dependencies, as above....
Read more >Upgrade guide - Lit.dev
Loading polyfill-support script when loading the web components polyfills. ... file will configure it to automatically inject the support file when needed:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think my point is the docs that I found say its there, but it’s not so if you run the basic install, then start storybook you get an error. I doubt that’s the intent is it? I just like clear documentation. Also is this ready? since it’s not listed on the main storybook doc site? I’m having issues with mdx docs with my web components as well.
Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!