-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
@storybook/angular has dependencies that should be peerDependencies #4430
Comments
I found out that e ven the latest version of
|
Might be related #4371 CC @Hypnosphi |
It's exactly what #4371 is about - ng-packgr (a pretty good packaging tool for angular) even blocks every dependency in your library project except those that are on a package whitelist Best-case: A package only ships peerDeps and a minimum of dependencies See https://github.com/ng-packagr/ng-packagr/blob/master/docs/dependencies.md |
@igor-dv If you know how to support both webpack 1 and 4, go ahead =) |
hah =) I don't know black magic. |
But hypothetically, if we were able to extract every webpack related code to something like
|
I'm closing this. I thought peers can be satisfied by second-level dependencies (in this case angular's dependency on webpack) Without forcing users to add webpack as a dependency in the actual app or live with a "unmet peer dependency" warning, this is not possible |
Bug or support request summary
After updating my storybook to
alpha.25
I got a strange error from webpack. After some investigations I found out thatwebpack-sources
was installed twice, by@angular-devkit/build-angular@0.7.1
=>webpack-sources@1.1.0
@storybook/angular@4.0.0-alpha.25
=>webpack-sources@1.3.0
This mostly is because my local
@angular
/webpack
version differs from the one's storybook is requiring.Edit: this throws an error in
build-storybook
and prevents building it.Steps to reproduce
"@angular-devkit/build-angular": "~0.7.1",
@storybook/angular@4.0.0-alpha.25
npm ll webpack-sources
Please specify which version of Storybook and optionally any affected addons that you're running
Work summary
I'd strongly recommend to set
webpack
as a peerDependency since@angular-devkit/build-angular
has already a dependency on webpack.Also,
@storybook/angular
is strongly bound to the webpack stuff in angular.Who to contact
@igor-dv what do you think? In order to fix this in our project I would've to push versions around to match exactly storybooks dependencies. I find this odd tbh
The text was updated successfully, but these errors were encountered: