{"action":"created","issue":{"url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/426","repository_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit","labels_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/426/comments","events_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/426/events","html_url":"https://github.com/davezuko/react-redux-starter-kit/issues/426","id":125884465,"number":426,"title":"Error after deploying to production","user":{"login":"maticrivo","id":21134,"avatar_url":"https://avatars.githubusercontent.com/u/21134?v=3","gravatar_id":"","url":"https://api.github.com/users/maticrivo","html_url":"https://github.com/maticrivo","followers_url":"https://api.github.com/users/maticrivo/followers","following_url":"https://api.github.com/users/maticrivo/following{/other_user}","gists_url":"https://api.github.com/users/maticrivo/gists{/gist_id}","starred_url":"https://api.github.com/users/maticrivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maticrivo/subscriptions","organizations_url":"https://api.github.com/users/maticrivo/orgs","repos_url":"https://api.github.com/users/maticrivo/repos","events_url":"https://api.github.com/users/maticrivo/events{/privacy}","received_events_url":"https://api.github.com/users/maticrivo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-01-11T06:55:22Z","updated_at":"2016-12-09T03:14:48Z","closed_at":"2016-01-11T13:34:00Z","body":"I used `NODE_ENV=production npm run compile`. I have my ngnix configuration to redirect all traffic to dist/index.html and if i try to go to a url thats not the index, for example http://domain.com/about i get the following javascript error:\n`Uncaught SyntaxError: Unexpected token <`\n\nif i go the the index, http://domain.com/ and from there press a link to the about page it all works perfect.\n\nany idea what can be wrong?\n"},"comment":{"url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/comments/265922863","html_url":"https://github.com/davezuko/react-redux-starter-kit/issues/426#issuecomment-265922863","issue_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/426","id":265922863,"user":{"login":"ranjithnori","id":4106656,"avatar_url":"https://avatars.githubusercontent.com/u/4106656?v=3","gravatar_id":"","url":"https://api.github.com/users/ranjithnori","html_url":"https://github.com/ranjithnori","followers_url":"https://api.github.com/users/ranjithnori/followers","following_url":"https://api.github.com/users/ranjithnori/following{/other_user}","gists_url":"https://api.github.com/users/ranjithnori/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjithnori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjithnori/subscriptions","organizations_url":"https://api.github.com/users/ranjithnori/orgs","repos_url":"https://api.github.com/users/ranjithnori/repos","events_url":"https://api.github.com/users/ranjithnori/events{/privacy}","received_events_url":"https://api.github.com/users/ranjithnori/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T03:14:48Z","updated_at":"2016-12-09T03:14:48Z","body":"@abhinavzspace What kind of history you use with React router ?\r\nWhen I got this kind of issue a while back, I was using browserHistory. I switched to hashHistory and everything worked perfectly. \r\n\r\nUnfortunately, I have no clear idea why this is so. I'll have to take a deep dive into React router histories myself.\r\n\r\n\r\n"}}
{"actor":{"display_login":"ranjithnori"}}