-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: Does not install lit-html in new web components project #15851
Comments
Hi @shilman, I'd like to pick this issue up if possible. |
Currently the cli doesn't add It would probably be worth adding handling for
So the best solution would probably be to have some handling that maps the Do you have any thoughts on this approach @shilman? |
@ben-m-j-taylor Thanks for taking this on! 🙏 I don't think it needs to take any of the frameworks on as peer dependencies since it doesn't actually USE any of them. It installs packages into the user's project, but that's not the same thing as relying on any of the functionality/code from the package. cc @gaetanmaisse |
Hey @shilman, sorry for the slow reply! Yes, you're right, I think my mental model of how this was all working had gotten a bit spun around. So really what we want to do is take what storybook is listing as a peer dependency for a given template/framework and if it isn't already installed in the project we should add it as a dependency and install it. So for {
"name": "@storybook/web-components",
"version": "6.4.0-alpha.32",
...
"peerDependencies": {
"lit-html": "^1.4.1 || ^2.0.0-rc.3"
},
...
} We would need to ensure that |
Is this still outstanding? I am interested in tackling if we still need to complete it |
Great Caesar's ghost!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.0-alpha.6 containing PR #17106 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
sb init
doesn't installlit-html
automatically, and it should. See attached conversation:Originally posted by @shilman in #15835 (reply in thread)
The text was updated successfully, but these errors were encountered: