{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/645","labels_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/645/labels{/name}","comments_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/645/comments","events_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/645/events","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/645","id":119729561,"number":645,"title":"import {xxx} from 'containers' causes weird behaviors during SSR","user":{"login":"xiaobuu","id":5868353,"avatar_url":"https://avatars.githubusercontent.com/u/5868353?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaobuu","html_url":"https://github.com/xiaobuu","followers_url":"https://api.github.com/users/xiaobuu/followers","following_url":"https://api.github.com/users/xiaobuu/following{/other_user}","gists_url":"https://api.github.com/users/xiaobuu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaobuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaobuu/subscriptions","organizations_url":"https://api.github.com/users/xiaobuu/orgs","repos_url":"https://api.github.com/users/xiaobuu/repos","events_url":"https://api.github.com/users/xiaobuu/events{/privacy}","received_events_url":"https://api.github.com/users/xiaobuu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T14:37:57Z","updated_at":"2015-12-01T14:44:01Z","closed_at":null,"body":"I recently went into a problem that server side rendering stopped working.\r\nComponents were all undefined in the router on node, but everything was fine on client.\r\nAfter spending about two hours, I finally figured out that it was the\r\n```\r\nimport {xxx} from 'containers'\r\n```\r\n'containers' happened to be a package's name which I didn't know I had installed, due to the flattened structure of node_modules in npm 3+, and it overrided my components. :(\r\n\r\nChanging 'containers' into './containers' fixed the issue\r\n\r\nShall we change all the import paths to avoid unexpected behaviors on SSR?"},"comment":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/comments/160987077","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/645#issuecomment-160987077","issue_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/645","id":160987077,"user":{"login":"isilweo","id":1628252,"avatar_url":"https://avatars.githubusercontent.com/u/1628252?v=3","gravatar_id":"","url":"https://api.github.com/users/isilweo","html_url":"https://github.com/isilweo","followers_url":"https://api.github.com/users/isilweo/followers","following_url":"https://api.github.com/users/isilweo/following{/other_user}","gists_url":"https://api.github.com/users/isilweo/gists{/gist_id}","starred_url":"https://api.github.com/users/isilweo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isilweo/subscriptions","organizations_url":"https://api.github.com/users/isilweo/orgs","repos_url":"https://api.github.com/users/isilweo/repos","events_url":"https://api.github.com/users/isilweo/events{/privacy}","received_events_url":"https://api.github.com/users/isilweo/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T14:44:01Z","updated_at":"2015-12-01T14:44:01Z","body":"I had same problem with importing utils/url.js had to change to ./utils/url\r\n```\r\nimport {mapUrl} from 'utils/url.js';\r\n```\r\nhttps://github.com/erikras/react-redux-universal-hot-example/blob/master/api/api.js#L6 \r\n\r\nI think it should be corrected."}}