question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using withInfo: Unexpected value 'undefined' declared by the module 'DynamicModule'

See original GitHub issue

Describe the bug Error when adding “withInfo” addon to storybook using Angular 7.

Unexpected value ‘undefined’ declared by the module ‘DynamicModule’

To Reproduce

  1. npm i -D @storybook/addon-info
  2. Add import {withInfo} from '@storybook/addon-info'; and stories.addDecorator(withInfo);
  3. Start storybook
  4. Go to story and see red error screen

Expected behavior Not expecting to see an error screen.

Screenshots skaermbillede 2018-11-12 kl 15 40 21

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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
stale[bot]commented, Mar 9, 2019

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!

4reactions
shilmancommented, Jan 14, 2019

addon-info does 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found