Ask questionsUnexpected value 'undefined' declared by the module 'DynamicModule'

Describe the bug Cannot use any addon because got the same error Unexpected value 'undefined' declared by the module 'DynamicModule'

To Reproduce

  1. Install addon-notes to my project
  2. Include import '@storybook/addon-notes/register'; on addons.js
  3. Add notes property to my story

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem.

Code snippets This is the story:

storiesOf('Table', module)
  .add('simple', () => (
      moduleMetadata: {
        declarations: [TableComponent, ColumnDirective]
      template: '<my-table [tableItems]="[{ company: \'Dummy\', employees: 10 }]" [columns]="[\'company\', \'employees\']"></my-table>'
    { notes: 'My notes on some button' }

but if I remove the notes object it works.


  • OS: MacOS
  • Device: MacBook Pro
  • Browser: All
  • Framework: Angular with monorepo set-up using nx
  • Addons: addons-note
  • Version: [e.g. 4.0.0]

Additional context

"@storybook/addon-notes": "^5.1.3",
"@storybook/angular": "^5.1.3",
"@angular/core": "^7.2.15",

Answer questions maxigimenez

Never mind, the problem was my implementation, was passing notes object as argument of the getStory function instead of the third argument of the add()

FYI addon notes are missing of angular documentation.

Github User Rank List