{"action":"opened","issue":{"url":"https://api.github.com/repos/strothj/react-docgen-typescript-loader/issues/53","repository_url":"https://api.github.com/repos/strothj/react-docgen-typescript-loader","labels_url":"https://api.github.com/repos/strothj/react-docgen-typescript-loader/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/strothj/react-docgen-typescript-loader/issues/53/comments","events_url":"https://api.github.com/repos/strothj/react-docgen-typescript-loader/issues/53/events","html_url":"https://github.com/strothj/react-docgen-typescript-loader/issues/53","id":477068551,"node_id":"MDU6SXNzdWU0NzcwNjg1NTE=","number":53,"title":"propTypes unknown","user":{"login":"haldunanil","id":9256828,"node_id":"MDQ6VXNlcjkyNTY4Mjg=","avatar_url":"https://avatars2.githubusercontent.com/u/9256828?v=4","gravatar_id":"","url":"https://api.github.com/users/haldunanil","html_url":"https://github.com/haldunanil","followers_url":"https://api.github.com/users/haldunanil/followers","following_url":"https://api.github.com/users/haldunanil/following{/other_user}","gists_url":"https://api.github.com/users/haldunanil/gists{/gist_id}","starred_url":"https://api.github.com/users/haldunanil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haldunanil/subscriptions","organizations_url":"https://api.github.com/users/haldunanil/orgs","repos_url":"https://api.github.com/users/haldunanil/repos","events_url":"https://api.github.com/users/haldunanil/events{/privacy}","received_events_url":"https://api.github.com/users/haldunanil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-05T21:34:23Z","updated_at":"2019-08-05T21:34:23Z","closed_at":null,"author_association":"NONE","body":"The rendered propTypes on the documentation all look like the following:\r\n\r\n<img width=\"535\" alt=\"Screen Shot 2019-08-05 at 5 31 41 PM\" src=\"https://user-images.githubusercontent.com/9256828/62496440-eb33b780-b7a6-11e9-9bf2-ee7c752516b7.png\">\r\n\r\nBut my interface looks like:\r\n\r\n```typescript\r\ntype Color = \"warning\" | \"primary\" | \"success\" | \"danger\";\r\n\r\nexport interface AlertProps extends React.HTMLAttributes<HTMLElement> {\r\n  canBeToggled?: boolean;\r\n  canTimeout?: boolean;\r\n  color?: Color;\r\n  timeout?: number;\r\n}\r\n```\r\n\r\nMy `webpack.config.js` looks like this:\r\n\r\n```javascript\r\nconst path = require(\"path\");\r\n\r\nmodule.exports = ({ config, mode }) => {\r\n  // mode has a value of 'DEVELOPMENT' or 'PRODUCTION'\r\n  // You can change the configuration based on that.\r\n  // 'PRODUCTION' is used when building the static version of storybook.\r\n\r\n  // make changes as needed\r\n  config.module.rules.push({\r\n    test: /\\.(ts|tsx)$/,\r\n    loader: require.resolve(\"awesome-typescript-loader\"),\r\n    options: {\r\n      getCustomTransformers: path.join(\r\n        __dirname,\r\n        \"./webpack.ts-transformers.js\"\r\n      )\r\n    }\r\n  });\r\n\r\n  config.module.rules.push({\r\n    test: /\\.(ts|tsx)$/,\r\n    include: path.resolve(__dirname, \"../src\"),\r\n    use: [require.resolve(\"react-docgen-typescript-loader\")]\r\n  });\r\n\r\n  config.module.rules.push({\r\n    test: /\\.stories.tsx?$/,\r\n    loaders: [\r\n      {\r\n        loader: require.resolve(\"@storybook/addon-storysource/loader\"),\r\n        options: { parser: \"typescript\" }\r\n      }\r\n    ],\r\n    enforce: \"pre\"\r\n  });\r\n\r\n  config.resolve.extensions.push(\".ts\", \".tsx\");\r\n\r\n  // Return the altered config\r\n  return config;\r\n};\r\n```\r\n\r\nAnyone know why this is happening?"}}
{"actor":{"display_login":"haldunanil"}}