{"action":"created","issue":{"url":"https://api.github.com/repos/halt-hammerzeit/webpack-isomorphic-tools/issues/35","repository_url":"https://api.github.com/repos/halt-hammerzeit/webpack-isomorphic-tools","labels_url":"https://api.github.com/repos/halt-hammerzeit/webpack-isomorphic-tools/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/halt-hammerzeit/webpack-isomorphic-tools/issues/35/comments","events_url":"https://api.github.com/repos/halt-hammerzeit/webpack-isomorphic-tools/issues/35/events","html_url":"https://github.com/halt-hammerzeit/webpack-isomorphic-tools/issues/35","id":120464973,"number":35,"title":"Cannot read property './webpack-assets.json' of undefined","user":{"login":"happypoulp","id":100044,"avatar_url":"https://avatars.githubusercontent.com/u/100044?v=3","gravatar_id":"","url":"https://api.github.com/users/happypoulp","html_url":"https://github.com/happypoulp","followers_url":"https://api.github.com/users/happypoulp/followers","following_url":"https://api.github.com/users/happypoulp/following{/other_user}","gists_url":"https://api.github.com/users/happypoulp/gists{/gist_id}","starred_url":"https://api.github.com/users/happypoulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/happypoulp/subscriptions","organizations_url":"https://api.github.com/users/happypoulp/orgs","repos_url":"https://api.github.com/users/happypoulp/repos","events_url":"https://api.github.com/users/happypoulp/events{/privacy}","received_events_url":"https://api.github.com/users/happypoulp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-04T19:03:14Z","updated_at":"2016-05-21T17:27:18Z","closed_at":"2015-12-05T11:00:29Z","body":"Hi,\r\n\r\nI am using the json-loader and when I try to use webpack-isomorphic-tools I get this error server-side:\r\n\r\n```\r\nlocal ~/Codes/webpack-iso $ npm start\r\n...\r\n[require-hook] [debug] Loading source code for /Users/me/Codes/webpack-iso/webpack-assets.json\r\n[webpack-isomorphic-tools] [debug] require() called for /Users/me/Codes/webpack-iso/webpack-assets.json\r\n[webpack-isomorphic-tools] [debug]  requiring ./webpack-assets.json\r\n/Users/me/Codes/webpack-iso/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/index.js:345\r\n\t\tvar asset = assets[asset_path];\r\n\t\t                  ^\r\n\r\nTypeError: Cannot read property './webpack-assets.json' of undefined\r\n    at webpack_isomorphic_tools.asset_source (/Users/me/Codes/webpack-iso/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/index.js:345:21)\r\n    at webpack_isomorphic_tools.require (/Users/me/Codes/webpack-iso/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/index.js:327:70)\r\n    at /Users/me/Codes/webpack-iso/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/index.js:294:18\r\n...\r\n```\r\n\r\nI have created a repo with minimal code to reproduce the issue here: https://github.com/happypoulp/webpack-isomorphic\r\n\r\nHere is the webpack config that I use: https://github.com/happypoulp/webpack-isomorphic/blob/master/webpack.config.js\r\nand here is the webpack isomorphic tools config I use: https://github.com/happypoulp/webpack-isomorphic/blob/master/webpack-isomorphic-tools.config.js\r\n\r\nThe webpack compilation is running well and the `webpack-assets.json` actually exists so I don't understand what I'm missing. May that be an issue with webpack-isomorphic-tools?\r\n\r\nThanks for your help.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/halt-hammerzeit/webpack-isomorphic-tools/issues/comments/220790306","html_url":"https://github.com/halt-hammerzeit/webpack-isomorphic-tools/issues/35#issuecomment-220790306","issue_url":"https://api.github.com/repos/halt-hammerzeit/webpack-isomorphic-tools/issues/35","id":220790306,"user":{"login":"halt-hammerzeit","id":477167,"avatar_url":"https://avatars.githubusercontent.com/u/477167?v=3","gravatar_id":"","url":"https://api.github.com/users/halt-hammerzeit","html_url":"https://github.com/halt-hammerzeit","followers_url":"https://api.github.com/users/halt-hammerzeit/followers","following_url":"https://api.github.com/users/halt-hammerzeit/following{/other_user}","gists_url":"https://api.github.com/users/halt-hammerzeit/gists{/gist_id}","starred_url":"https://api.github.com/users/halt-hammerzeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halt-hammerzeit/subscriptions","organizations_url":"https://api.github.com/users/halt-hammerzeit/orgs","repos_url":"https://api.github.com/users/halt-hammerzeit/repos","events_url":"https://api.github.com/users/halt-hammerzeit/events{/privacy}","received_events_url":"https://api.github.com/users/halt-hammerzeit/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T17:27:17Z","updated_at":"2016-05-21T17:27:17Z","body":"FYI\r\nI'm posting this in every issue and PR to notify whoever may be interested:\r\ntoday I've released an alternative helper library called [`universal-webpack`](https://github.com/halt-hammerzeit/universal-webpack).\r\nIt takes a different approach than `webpack-ismorphic-tools` and instead of hacking Node.js `require()` calls it just compiles all code with `target: 'node'` webpack configuration option.\r\nAs a result, all Webpack plugins and features are supported.\r\nIf you think you might need that here's an example project:\r\nhttps://github.com/halt-hammerzeit/webpack-react-redux-isomorphic-render-example\r\n"}}
{"actor":{"display_login":"halt-hammerzeit"}}