question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lit-html missing when installing web_components

See original GitHub issue

Describe 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 image

image

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mbulfaircommented, Jan 17, 2020

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.

0reactions
stale[bot]commented, Mar 8, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found