Storybook: @storybook/angular shouldn't depend on zone.js

Created on 30 Oct 2018  路  8Comments  路  Source: storybookjs/storybook

Describe the bug
Currently, @storybook/angular lists zone.js within its dependencies; however, (as far as I can tell) in practice @storybook/angular doesn't actually depend on it. Of course, Angular does but perhaps it's worth removing it as a @storybook/angular dependency to avoid conflicts.

To Reproduce
See https://github.com/storybooks/storybook/blob/v4.0.0/app/angular/package.json#L44.

Expected behavior
@storybook/angular shouldn't depend on zone.js if it doesn't use it.

Screenshots
N/A

Code snippets
N/A

System:

  • OS: MacOS
  • Device: Macbook Pro 2017
  • Browser: Chrome
  • Framework: Angular
  • Addons: none
  • Version: 4.0.0

Additional context
N/A

angular question / support

All 8 comments

@igor-dv @storybook/angular does not depend on it. Wasn't it core or something? We already had a discussion about zone.js

Sorry, re-read my description and realized it was very odd/poorly written 馃槄updated.

Well, this time zone.js isn't a dependency of a dependency (like webpack is just a dep of angular core). zone.js is a direct dep of n angular app - maybe we can put zone.js as peer dep and dev dep for development this time?

Yep. It should work

Peer dependency makes sense. The way I see it, Storybook should be pulling the version of zone.js already being used in the host Angular project anyway, unless there's a specific task Storybook is using zone.js for that differs from the rest of the project.

Wanna PR this ?

For sure. Opened!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sakulstra picture sakulstra  路  3Comments

wahengchang picture wahengchang  路  3Comments

zvictor picture zvictor  路  3Comments

dnlsandiego picture dnlsandiego  路  3Comments

levithomason picture levithomason  路  3Comments