payload: {"action":"created","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/6491","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/6491/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/6491/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/6491/events","html_url":"https://github.com/storybooks/storybook/issues/6491","id":432062773,"node_id":"MDU6SXNzdWU0MzIwNjI3NzM=","number":6491,"title":"CRA v2.1.8 and @storybook v5.1.0-alpha.24 addon-info not working for Flow types","user":{"login":"sh00ter","id":306704,"node_id":"MDQ6VXNlcjMwNjcwNA==","avatar_url":"https://avatars1.githubusercontent.com/u/306704?v=4","gravatar_id":"","url":"https://api.github.com/users/sh00ter","html_url":"https://github.com/sh00ter","followers_url":"https://api.github.com/users/sh00ter/followers","following_url":"https://api.github.com/users/sh00ter/following{/other_user}","gists_url":"https://api.github.com/users/sh00ter/gists{/gist_id}","starred_url":"https://api.github.com/users/sh00ter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh00ter/subscriptions","organizations_url":"https://api.github.com/users/sh00ter/orgs","repos_url":"https://api.github.com/users/sh00ter/repos","events_url":"https://api.github.com/users/sh00ter/events{/privacy}","received_events_url":"https://api.github.com/users/sh00ter/received_events","type":"User","site_admin":false},"labels":[{"id":584803932,"node_id":"MDU6TGFiZWw1ODQ4MDM5MzI=","url":"https://api.github.com/repos/storybooks/storybook/labels/addon:%20info","name":"addon: info","color":"fbca04","default":false},{"id":1136143266,"node_id":"MDU6TGFiZWwxMTM2MTQzMjY2","url":"https://api.github.com/repos/storybooks/storybook/labels/cra","name":"cra","color":"09b1ba","default":false},{"id":735933332,"node_id":"MDU6TGFiZWw3MzU5MzMzMzI=","url":"https://api.github.com/repos/storybooks/storybook/labels/inactive","name":"inactive","color":"ffffff","default":false},{"id":343576459,"node_id":"MDU6TGFiZWwzNDM1NzY0NTk=","url":"https://api.github.com/repos/storybooks/storybook/labels/question%20/%20support","name":"question / support","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/storybooks/storybook/milestones/13","html_url":"https://github.com/storybooks/storybook/milestone/13","labels_url":"https://api.github.com/repos/storybooks/storybook/milestones/13/labels","id":4077576,"node_id":"MDk6TWlsZXN0b25lNDA3NzU3Ng==","number":13,"title":"5.1.0","description":"","creator":{"login":"shilman","id":488689,"node_id":"MDQ6VXNlcjQ4ODY4OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/488689?v=4","gravatar_id":"","url":"https://api.github.com/users/shilman","html_url":"https://github.com/shilman","followers_url":"https://api.github.com/users/shilman/followers","following_url":"https://api.github.com/users/shilman/following{/other_user}","gists_url":"https://api.github.com/users/shilman/gists{/gist_id}","starred_url":"https://api.github.com/users/shilman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shilman/subscriptions","organizations_url":"https://api.github.com/users/shilman/orgs","repos_url":"https://api.github.com/users/shilman/repos","events_url":"https://api.github.com/users/shilman/events{/privacy}","received_events_url":"https://api.github.com/users/shilman/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":124,"state":"open","created_at":"2019-02-22T01:34:06Z","updated_at":"2019-05-16T16:36:17Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2019-04-11T14:42:26Z","updated_at":"2019-05-16T22:56:12Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nCan't get addon-info to work properly with Flow types when using @storybook with CRA.\r\nUsing the default Flow Typed Button example from the official examples I am getting this Props Table\r\n\r\n<img width=\"1624\" alt=\"Screenshot 2019-04-11 at 17 24 06\" src=\"https://user-images.githubusercontent.com/306704/55965188-c14a0880-5c7e-11e9-9dca-471d9aaa7a19.png\">\r\n\r\nHere is the code used for this story:\r\n\r\n```javascript\r\nimport React from 'react';\r\nimport { storiesOf } from '@storybook/react';\r\nimport { action } from '@storybook/addon-actions';\r\nimport { withInfo } from '@storybook/addon-info';\r\nimport FlowTypeButton from './FlowTypeButton';\r\n\r\nstoriesOf('FlowTypeButton', module)\r\n  .addDecorator(withInfo)\r\n  .add(\r\n    'Comments from Flow declarations',\r\n    () => (\r\n      <FlowTypeButton onClick={action('clicked')} label=\"Flow Typed Button\" />\r\n    ),\r\n    {\r\n      info:\r\n        'Comments above the Flow declarations should be extracted from the React component file itself and rendered in the Info Addon prop table',\r\n    }\r\n  );\r\n```\r\n\r\nOn the official demo app I can see the actual Flow types being correctly parsed and placed in the Props Table\r\n\r\n<img width=\"1623\" alt=\"Screenshot 2019-04-11 at 17 24 45\" src=\"https://user-images.githubusercontent.com/306704/55965507-65cc4a80-5c7f-11e9-8566-a2bc9e55675c.png\">\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. ```npx create react-app my-app```\r\n2. ```cd my-app```\r\n3. ```npx -p @storybook/cli sb init```\r\n4. install ```addon-info``` addon\r\n5. import Flow Typed Button\r\n6. add story as shown above\r\n7. ```npm run storybook```\r\n\r\n**Expected behavior**\r\nI would expect to get the Props Table populated with all the prop types and their respective description. See the screenshot above.\r\nHere is the code for the FlowTypeButton.js from the official @storybook repo\r\n```javascript\r\n// @flow\r\nimport React from 'react';\r\n\r\n/* eslint-disable react/no-unused-prop-types,react/require-default-props */\r\n\r\nconst Message = {};\r\n\r\ntype PropsType = {\r\n  /** A multi-type prop to be rendered in the button */\r\n  label: string,\r\n  /** Function to be called when the button is clicked */\r\n  onClick?: Function,\r\n  /** Boolean representing whether the button is disabled */\r\n  disabled?: boolean,\r\n  /** A plain object */\r\n  obj?: Object,\r\n  /** A complex Object with nested types */\r\n  shape: {\r\n    id: number,\r\n    func?: Function,\r\n    arr?: Array<{\r\n      index: number,\r\n    }>,\r\n    shape?: {\r\n      shape?: {\r\n        foo?: string,\r\n      },\r\n    },\r\n  },\r\n  /** An array of numbers */\r\n  arrayOf?: Array<number>,\r\n  /** A custom type */\r\n  msg?: typeof Message,\r\n  /** `oneOf` as Enum */\r\n  enm?: 'News' | 'Photos',\r\n  /** `oneOf` A multi-type prop of string or custom Message */\r\n  union?: string | typeof Message,\r\n};\r\n\r\n/** FlowTypeButton component description imported from comments inside the component file */\r\nconst FlowTypeButton = ({ label, onClick, disabled }: PropsType) => (\r\n  <button type=\"button\" onClick={onClick} disabled={disabled}>\r\n    {label}\r\n  </button>\r\n);\r\n\r\nFlowTypeButton.defaultProps = {\r\n  disabled: false,\r\n  onClick: () => {},\r\n};\r\n\r\nexport default FlowTypeButton;\r\n```\r\n\r\n**System:**\r\n - OS: MacOS\r\n - Device: Macbook Pro Retina\r\n - Browser: chrome\r\n - Framework: react\r\n - Addons: addon-info\r\n - Version: 5.1.0-alpha.24"},"comment":{"url":"https://api.github.com/repos/storybooks/storybook/issues/comments/493258788","html_url":"https://github.com/storybooks/storybook/issues/6491#issuecomment-493258788","issue_url":"https://api.github.com/repos/storybooks/storybook/issues/6491","id":493258788,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MzI1ODc4OA==","user":{"login":"github-actions[bot]","id":41898282,"node_id":"MDM6Qm90NDE4OTgyODI=","avatar_url":"https://avatars2.githubusercontent.com/in/15368?v=4","gravatar_id":"","url":"https://api.github.com/users/github-actions%5Bbot%5D","html_url":"https://github.com/apps/github-actions","followers_url":"https://api.github.com/users/github-actions%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-actions%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-actions%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-actions%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-actions%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-05-16T22:56:12Z","updated_at":"2019-05-16T22:56:12Z","author_association":"NONE","body":"Automention: Hey @elevatebart @mrmckeb @shilman, you've been tagged! Can you give a hand here?"}}
other: {"actor":{"display_login":"github-actions"}}