-
-
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
[Angular] TypeError: Cannot read property 'value' of undefined #7157
Comments
I get this on |
Same here. I tried to upgrade from Storybook 5.0.11 to 5.1.9 with Angular 7.2.15, and got:
in the browser. |
This issue seems to be a duplicate of my issue #7106. |
Any news ? I have a pretty similar issue. When using one NgModule as an entry point for importing all modules, it does not find all components / directives :
tories.addDecorator(
moduleMetadata({
imports: [ Module1, Module2, Module3]
}),
); ==> OK tories.addDecorator(
moduleMetadata({
imports: [ RootModule ]
}),
);
@NgModule({
imports: [ Module1, Module2, Module3 ],
exports: [ Module1, Module2, Module3 ]
})
export class RootModule{} ==> KO |
A current workaround for me seems to be to do: storiesOf('core | core/MyComponent', module)
.add('default', () => ({
component: MyComponent,
moduleMetadata: {
declarations: [MyComponent], // Adding this brings it back to live
imports: [
TranslateModule.forRoot(),
],
},
})); |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Please don't close this. Angular is broken currently. |
FYI: My PR (#7224) for this bug was recently merged into |
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-beta.9 containing PR #7224 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
There are two things I encountered when upgrading from 5.1.11 to 5.2.0-rc.11 which I think is worth writing down.
|
Describe the bug
When using a decorator to provide required modules to an angular component, storybook throws the error below:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The component is shown as expected
Screenshots
https://ibb.co/zmBBPgv
Code snippets
Module
Story
System:
The text was updated successfully, but these errors were encountered: