{"action":"created","issue":{"url":"https://api.github.com/repos/vikingmute/webpack-react-codes/issues/13","repository_url":"https://api.github.com/repos/vikingmute/webpack-react-codes","labels_url":"https://api.github.com/repos/vikingmute/webpack-react-codes/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/vikingmute/webpack-react-codes/issues/13/comments","events_url":"https://api.github.com/repos/vikingmute/webpack-react-codes/issues/13/events","html_url":"https://github.com/vikingmute/webpack-react-codes/issues/13","id":196214212,"number":13,"title":"一点问题请教","user":{"login":"venoral","id":14950800,"avatar_url":"https://avatars.githubusercontent.com/u/14950800?v=3","gravatar_id":"","url":"https://api.github.com/users/venoral","html_url":"https://github.com/venoral","followers_url":"https://api.github.com/users/venoral/followers","following_url":"https://api.github.com/users/venoral/following{/other_user}","gists_url":"https://api.github.com/users/venoral/gists{/gist_id}","starred_url":"https://api.github.com/users/venoral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venoral/subscriptions","organizations_url":"https://api.github.com/users/venoral/orgs","repos_url":"https://api.github.com/users/venoral/repos","events_url":"https://api.github.com/users/venoral/events{/privacy}","received_events_url":"https://api.github.com/users/venoral/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-17T10:06:27Z","updated_at":"2016-12-20T12:06:15Z","closed_at":null,"body":"在码P135页代码时候，引入“handlebars”模块，npm警告报错如下：\r\n`WARNING in ./~handlebars/lib/index.js\r\nrequire.extensions is not supported by webpack. Use a loader instead.`\r\n`ERROR in ./~/handlebars/lib/index.js\r\nModule not found: Error: Cannot resolve module 'fs' in f:\\..\\node_modules\\handlebars\\lib\r\n@ ./~/handlebars/lib/index.js 17:10-23`\r\n看起来提示是让安装一个loader解决，但是并没.hbs文件呐~\r\n报错说找不到fs模块，这是为什么明明是在node中运行的啊... \r\n通过进入/handlebars/lib/index.js文件删除掉`require('fs')`语句或在webpack.config.js中配置`node: { fs: \"empty\"}`能解决掉报错，但是警告依然存在。\r\n求解答~~"},"comment":{"url":"https://api.github.com/repos/vikingmute/webpack-react-codes/issues/comments/268227113","html_url":"https://github.com/vikingmute/webpack-react-codes/issues/13#issuecomment-268227113","issue_url":"https://api.github.com/repos/vikingmute/webpack-react-codes/issues/13","id":268227113,"user":{"login":"venoral","id":14950800,"avatar_url":"https://avatars.githubusercontent.com/u/14950800?v=3","gravatar_id":"","url":"https://api.github.com/users/venoral","html_url":"https://github.com/venoral","followers_url":"https://api.github.com/users/venoral/followers","following_url":"https://api.github.com/users/venoral/following{/other_user}","gists_url":"https://api.github.com/users/venoral/gists{/gist_id}","starred_url":"https://api.github.com/users/venoral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venoral/subscriptions","organizations_url":"https://api.github.com/users/venoral/orgs","repos_url":"https://api.github.com/users/venoral/repos","events_url":"https://api.github.com/users/venoral/events{/privacy}","received_events_url":"https://api.github.com/users/venoral/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T12:06:15Z","updated_at":"2016-12-20T12:06:15Z","body":"好的，了解！"}}
{"actor":{"display_login":"venoral"}}