{"action":"created","issue":{"url":"https://api.github.com/repos/surmon-china/vue-video-player/issues/10","repository_url":"https://api.github.com/repos/surmon-china/vue-video-player","labels_url":"https://api.github.com/repos/surmon-china/vue-video-player/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/surmon-china/vue-video-player/issues/10/comments","events_url":"https://api.github.com/repos/surmon-china/vue-video-player/issues/10/events","html_url":"https://github.com/surmon-china/vue-video-player/issues/10","id":186831803,"number":10,"title":"appropriate loader to handle this file type json","user":{"login":"jcc2303","id":3462917,"avatar_url":"https://avatars.githubusercontent.com/u/3462917?v=3","gravatar_id":"","url":"https://api.github.com/users/jcc2303","html_url":"https://github.com/jcc2303","followers_url":"https://api.github.com/users/jcc2303/followers","following_url":"https://api.github.com/users/jcc2303/following{/other_user}","gists_url":"https://api.github.com/users/jcc2303/gists{/gist_id}","starred_url":"https://api.github.com/users/jcc2303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcc2303/subscriptions","organizations_url":"https://api.github.com/users/jcc2303/orgs","repos_url":"https://api.github.com/users/jcc2303/repos","events_url":"https://api.github.com/users/jcc2303/events{/privacy}","received_events_url":"https://api.github.com/users/jcc2303/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-02T15:22:10Z","updated_at":"2016-11-02T16:18:44Z","closed_at":null,"body":"\r\nHi @surmon-china \r\n\r\nI learning Vue, I was trying your component but have problems with require json file, \r\nHow can I config to work with your component?\r\n\r\nthanks in advance\r\n\r\n```sh\r\nERROR in ./~/vue-video-player/lang/zh-TW.json\r\nModule parse failed: /user/quasar-video/node_modules/vue-video-player/lang/zh-TW.json Unexpected token (2:8)\r\nYou may need an appropriate loader to handle this file type.\r\nSyntaxError: Unexpected token (2:8)\r\n    at Parser.pp$4.raise (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)\r\n    at Parser.pp.unexpected (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)\r\n    at Parser.pp.semicolon (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)\r\n    at Parser.pp$1.parseExpressionStatement (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)\r\n    at Parser.pp$1.parseStatement (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)\r\n    at Parser.pp$1.parseBlock (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)\r\n    at Parser.pp$1.parseStatement (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:709:33)\r\n    at Parser.pp$1.parseTopLevel (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)\r\n    at Parser.parse (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)\r\n    at Object.parse (/user/quasar-video/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)\r\n    at Parser.parse (/user/quasar-video/node_modules/webpack/lib/Parser.js:902:15)\r\n    at DependenciesBlock.<anonymous> (/user/quasar-video/node_modules/webpack/lib/NormalModule.js:104:16)\r\n    at DependenciesBlock.onModuleBuild (/user/quasar-video/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)\r\n    at nextLoader (/user/quasar-video/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)\r\n    at /user/quasar-video/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5\r\n    at Storage.finished (/user/quasar-video/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)\r\n @ ./~/vue-video-player/languages.js 31:11-39\r\n```"},"comment":{"url":"https://api.github.com/repos/surmon-china/vue-video-player/issues/comments/257915826","html_url":"https://github.com/surmon-china/vue-video-player/issues/10#issuecomment-257915826","issue_url":"https://api.github.com/repos/surmon-china/vue-video-player/issues/10","id":257915826,"user":{"login":"jcc2303","id":3462917,"avatar_url":"https://avatars.githubusercontent.com/u/3462917?v=3","gravatar_id":"","url":"https://api.github.com/users/jcc2303","html_url":"https://github.com/jcc2303","followers_url":"https://api.github.com/users/jcc2303/followers","following_url":"https://api.github.com/users/jcc2303/following{/other_user}","gists_url":"https://api.github.com/users/jcc2303/gists{/gist_id}","starred_url":"https://api.github.com/users/jcc2303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcc2303/subscriptions","organizations_url":"https://api.github.com/users/jcc2303/orgs","repos_url":"https://api.github.com/users/jcc2303/repos","events_url":"https://api.github.com/users/jcc2303/events{/privacy}","received_events_url":"https://api.github.com/users/jcc2303/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T16:18:44Z","updated_at":"2016-11-02T16:18:44Z","body":"Hi thanks, \r\n\r\nyour component work nice,\r\n\r\n\r\nI haved to install json-loader\r\nand add config webpack\r\n```js\r\nloaders: [\r\n   { test: /\\.json$/, loader: 'json' },\r\n   // other loaders \r\n]\r\n```\r\n\r\nI will follow playing with the component.\r\nthanks! \r\n"}}
{"actor":{"display_login":"jcc2303"}}