{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/react-transform-hmr/issues/38","labels_url":"https://api.github.com/repos/gaearon/react-transform-hmr/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/react-transform-hmr/issues/38/comments","events_url":"https://api.github.com/repos/gaearon/react-transform-hmr/issues/38/events","html_url":"https://github.com/gaearon/react-transform-hmr/issues/38","id":121831532,"number":38,"title":"locals[0] does not appear to be a `module` object...","user":{"login":"micooz","id":8897063,"avatar_url":"https://avatars.githubusercontent.com/u/8897063?v=3","gravatar_id":"","url":"https://api.github.com/users/micooz","html_url":"https://github.com/micooz","followers_url":"https://api.github.com/users/micooz/followers","following_url":"https://api.github.com/users/micooz/following{/other_user}","gists_url":"https://api.github.com/users/micooz/gists{/gist_id}","starred_url":"https://api.github.com/users/micooz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micooz/subscriptions","organizations_url":"https://api.github.com/users/micooz/orgs","repos_url":"https://api.github.com/users/micooz/repos","events_url":"https://api.github.com/users/micooz/events{/privacy}","received_events_url":"https://api.github.com/users/micooz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-12T03:53:07Z","updated_at":"2015-12-12T22:43:56Z","closed_at":null,"body":"> ...../react-transform-boilerplate/node_modules/react-transform-hmr/lib/index.js:51\r\n    throw new Error('locals[0] does not appear to be a `module` object with Hot Module ' + 'replacement API enabled. You should disable react-transform-hmr in ' + 'production by using `env` section in Babel configuration. See the ' + 'example in README: https://github.com/gaearon/react-transform-hmr');\r\n\r\nI'm trying server-side rendering and I use `react-transform-hmr` to do hot reload, but when I import react components to the script, the error above is thrown.\r\n\r\nI followed `react-transform-boilerplate` and simply add a line to the top of the `devServer.js`:\r\n\r\n    var App = require('./src/App');\r\n    ...\r\n\r\nthen run the script with babel-node:\r\n\r\n    \"start\": \"babel-node devServer.js\"\r\n\r\nand you will see the problem. So how can I use this plugin to do server-side rendering?"},"comment":{"url":"https://api.github.com/repos/gaearon/react-transform-hmr/issues/comments/164199742","html_url":"https://github.com/gaearon/react-transform-hmr/issues/38#issuecomment-164199742","issue_url":"https://api.github.com/repos/gaearon/react-transform-hmr/issues/38","id":164199742,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T22:43:56Z","updated_at":"2015-12-12T22:43:56Z","body":"Don't enable the `react-transform` plugin when rendering on the server.\r\nIt is only meant for the client environment."}}