{"action":"closed","issue":{"url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1318","repository_url":"https://api.github.com/repos/mxstbr/react-boilerplate","labels_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1318/labels{/name}","comments_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1318/comments","events_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1318/events","html_url":"https://github.com/mxstbr/react-boilerplate/issues/1318","id":194315804,"number":1318,"title":"npm run start:prod error when using boilerplate with semantic-ui, semantic-ui-react, and redux-form","user":{"login":"karloespiritu","id":219083,"avatar_url":"https://avatars.githubusercontent.com/u/219083?v=3","gravatar_id":"","url":"https://api.github.com/users/karloespiritu","html_url":"https://github.com/karloespiritu","followers_url":"https://api.github.com/users/karloespiritu/followers","following_url":"https://api.github.com/users/karloespiritu/following{/other_user}","gists_url":"https://api.github.com/users/karloespiritu/gists{/gist_id}","starred_url":"https://api.github.com/users/karloespiritu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karloespiritu/subscriptions","organizations_url":"https://api.github.com/users/karloespiritu/orgs","repos_url":"https://api.github.com/users/karloespiritu/repos","events_url":"https://api.github.com/users/karloespiritu/events{/privacy}","received_events_url":"https://api.github.com/users/karloespiritu/received_events","type":"User","site_admin":false},"labels":[{"id":358062007,"url":"https://api.github.com/repos/mxstbr/react-boilerplate/labels/question","name":"question","color":"d4c5f9","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T11:47:30Z","updated_at":"2016-12-08T17:08:17Z","closed_at":"2016-12-08T17:08:17Z","body":"The boilerplate (v3.3.3) won't load on `npm run start:prod` when using it with `redux-form` and `semantic-ui`. In the browser console, this error appears:\r\n\r\n```\r\n Uncaught TypeError: Cannot read property 'call' of undefined(…)  in http://localhost:3000/main.07993bcd469b17e4dedf.js\r\n```\r\n\r\n<img width=\"846\" alt=\"console-error-log\" src=\"https://cloud.githubusercontent.com/assets/219083/21008527/134d3ace-bd7d-11e6-90e8-d5200f21573c.png\">\r\n\r\nThis does not occur when just using `npm run start` but only when using `npm run start:prod`. I suspect this has something to do with how `webpack` builds the dependencies.\r\n\r\nI recreated the issue by just adding `semantic-ui` and `semantic-ui-react` to a fork of [https://github.com/carlos-peru/react-boilerplate-redux-form](https://github.com/carlos-peru/react-boilerplate-redux-form), a project that demonstrates integrating `redux-form` to `react-boilerplate`.\r\n\r\nMy repo: [https://github.com/karloespiritu/react-boilerplate-redux-form-semantic](https://github.com/karloespiritu/react-boilerplate-redux-form-semantic) demonstrates this issue. \r\n\r\nI would assume someone else might have encountered this issue since those 3 packages -- `redux-form`, `semantic-ui`, `semantic-ui-react` -- are pretty common to include in react projects.\r\n\r\nAny help/clue/direction to resolve this issue is highly appreciated. :) Thanks."}}
{"actor":{"display_login":"karloespiritu"}}