Error using withInfo: Unexpected value 'undefined' declared by the module 'DynamicModule'
See original GitHub issueDescribe the bug Error when adding “withInfo” addon to storybook using Angular 7.
Unexpected value ‘undefined’ declared by the module ‘DynamicModule’
To Reproduce
- npm i -D @storybook/addon-info
- Add
import {withInfo} from '@storybook/addon-info';andstories.addDecorator(withInfo); - Start storybook
- Go to story and see red error screen
Expected behavior Not expecting to see an error screen.
Screenshots

System:
- OS: [OSX 10.14]
- Device: [Macbook Pro 2017]
- Browser: [chrome]
- Framework: [angular 7]
- Addons: [withInfo, withKnobs, withNotes]
- Version: [4.0.4]
Additional info It works when I remove the “withInfo” addon. So it’s not related to https://github.com/storybooks/storybook/issues/3614, which was about the withKnobs addon.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Unexpected value 'undefined' declared by the module ...
I'm trying to make it work but I get that error in the header. I have included the <router-outlet></router-outlet> in the app.component.html ...
Read more >Error using withInfo: Unexpected value 'undefined' declared ...
Error when adding "withInfo" addon to storybook using Angular 7. Unexpected value 'undefined' declared by the module 'DynamicModule'.
Read more >Fixing Angular Error: Unexpected value 'undefined' declared ...
First, try to restart ng serve . In some cases this will outright fix the issue. The error message is caused by some...
Read more >Unexpected value 'undefined' declared by the module ... - Reddit
I have my test set up with one declaration, the component being tested, and that component only imports Component and Input from @...
Read more >Unexpected value 'undefined' declared by the ... - YouTube
angular: Unexpected value ' undefined ' declared by the module 'AppModule'Thanks for taking the time to learn more. In this video I'll go ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!
addon-infodoes not support angular (see ADDONS_SUPPORT.md), so this is a feature request not a bug. We’ll support all the view layers with the upcoming docs mode, so that will be the recommended solution once it lands.