We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Component dependencies are not being resolved.
Expected: store dependency to be resolved. Instead, this error is thrown:
store
Can't resolve all parameters for MyComponent: (?)
Snippets below
@storybook/angular: 3.4.0-alpha.7
// Component import { Component } from '@angular/core'; import { Store } from '@ngrx/store'; @Component({ selector: 'my-comp', templateUrl: './my-comp.component.html', }) export class MyComponent { constructor( store: Store<any>, ) { console.log(store, store === undefined); // Response: `undefined true` } }
// Story import { storiesOf, moduleMetadata } from '@storybook/angular'; import { StoreModule } from '@ngrx/store'; import { MyComponent } from './my-component.component'; storiesOf('MyComponent', module) .addDecorator(moduleMetadata({ imports: [ StoreModule.forRoot({}), ], declarations: [ MyComponent, ], })) .add('MyComponent', () => { return { component: MyComponent, }; });
The text was updated successfully, but these errors were encountered:
I've added an example usage with the @ngrx/store. You can take a look here, it's injected.
@ngrx/store
Maybe you can try the latest 3.4.0-rc2 release ?
Sorry, something went wrong.
Hey,
Yes, the issue is solved in the newest rc version! Thanks!
Sorry for not replying faster.
No branches or pull requests
Issue details
Component dependencies are not being resolved.
Expected:
store
dependency to be resolved.Instead, this error is thrown:
Steps to reproduce
Snippets below
Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/angular: 3.4.0-alpha.7
Affected platforms
Screenshots / Screencast / Code Snippets (Optional)
The text was updated successfully, but these errors were encountered: