{"action":"created","issue":{"url":"https://api.github.com/repos/naptha/tesseract.js/issues/77","repository_url":"https://api.github.com/repos/naptha/tesseract.js","labels_url":"https://api.github.com/repos/naptha/tesseract.js/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/naptha/tesseract.js/issues/77/comments","events_url":"https://api.github.com/repos/naptha/tesseract.js/issues/77/events","html_url":"https://github.com/naptha/tesseract.js/issues/77","id":186541588,"number":77,"title":"webpack support","user":{"login":"rudzikdawid","id":7476577,"avatar_url":"https://avatars.githubusercontent.com/u/7476577?v=3","gravatar_id":"","url":"https://api.github.com/users/rudzikdawid","html_url":"https://github.com/rudzikdawid","followers_url":"https://api.github.com/users/rudzikdawid/followers","following_url":"https://api.github.com/users/rudzikdawid/following{/other_user}","gists_url":"https://api.github.com/users/rudzikdawid/gists{/gist_id}","starred_url":"https://api.github.com/users/rudzikdawid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudzikdawid/subscriptions","organizations_url":"https://api.github.com/users/rudzikdawid/orgs","repos_url":"https://api.github.com/users/rudzikdawid/repos","events_url":"https://api.github.com/users/rudzikdawid/events{/privacy}","received_events_url":"https://api.github.com/users/rudzikdawid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-01T14:04:34Z","updated_at":"2016-11-17T01:04:07Z","closed_at":"2016-11-01T19:08:24Z","body":"using webpack, trying to load module like:\r\n```\r\nconst tesseract = require('tesseract.js');\r\n```\r\n\r\ni have error:\r\n```\r\nERROR in ./~/tesseract.js/package.json\r\nModule parse failed: /home/mike_oldfield/tesseract/node_modules/tesseract.js/package.json Unexpected token (2:9)\r\nYou may need an appropriate loader to handle this file type.\r\nSyntaxError: Unexpected token (2:9)\r\n    at Parser.pp$4.raise (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:2221:15)\r\n    at Parser.pp.unexpected (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:603:10)\r\n    at Parser.pp.semicolon (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:581:61)\r\n    at Parser.pp$1.parseExpressionStatement (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:966:10)\r\n    at Parser.pp$1.parseStatement (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:730:24)\r\n    at Parser.pp$1.parseBlock (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:981:25)\r\n    at Parser.pp$1.parseStatement (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:709:33)\r\n    at Parser.pp$1.parseTopLevel (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:638:25)\r\n    at Parser.parse (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:516:17)\r\n    at Object.parse (/home/mike_oldfield/tesseract/node_modules/acorn/dist/acorn.js:3098:39)\r\n @ ./~/tesseract.js/src/index.js 5:16-42\r\n```\r\n\r\nbecouse tesseract.js/package.json\r\n\r\n```\r\n\"main\": \"src/index.js\"\r\n```\r\n\r\n\r\n**To fix this we need to change \"main\" in package.json**\r\n```\r\n\"main\": \"dist/tesseract.js\"\r\n```\r\n\r\nwith this litle change, module is loading properly using webpack\r\n"},"comment":{"url":"https://api.github.com/repos/naptha/tesseract.js/issues/comments/261123507","html_url":"https://github.com/naptha/tesseract.js/issues/77#issuecomment-261123507","issue_url":"https://api.github.com/repos/naptha/tesseract.js/issues/77","id":261123507,"user":{"login":"yowakita","id":11986887,"avatar_url":"https://avatars.githubusercontent.com/u/11986887?v=3","gravatar_id":"","url":"https://api.github.com/users/yowakita","html_url":"https://github.com/yowakita","followers_url":"https://api.github.com/users/yowakita/followers","following_url":"https://api.github.com/users/yowakita/following{/other_user}","gists_url":"https://api.github.com/users/yowakita/gists{/gist_id}","starred_url":"https://api.github.com/users/yowakita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yowakita/subscriptions","organizations_url":"https://api.github.com/users/yowakita/orgs","repos_url":"https://api.github.com/users/yowakita/repos","events_url":"https://api.github.com/users/yowakita/events{/privacy}","received_events_url":"https://api.github.com/users/yowakita/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T01:04:07Z","updated_at":"2016-11-17T01:04:07Z","body":"@antimatter15 can you respond to this?"}}
{"actor":{"display_login":"yowakita"}}