{"action":"created","issue":{"url":"https://api.github.com/repos/wallabyjs/quokka/issues/58","repository_url":"https://api.github.com/repos/wallabyjs/quokka","labels_url":"https://api.github.com/repos/wallabyjs/quokka/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/quokka/issues/58/comments","events_url":"https://api.github.com/repos/wallabyjs/quokka/issues/58/events","html_url":"https://github.com/wallabyjs/quokka/issues/58","id":232061277,"number":58,"title":"Error when using async function","user":{"login":"pbie42","id":16035925,"avatar_url":"https://avatars2.githubusercontent.com/u/16035925?v=3","gravatar_id":"","url":"https://api.github.com/users/pbie42","html_url":"https://github.com/pbie42","followers_url":"https://api.github.com/users/pbie42/followers","following_url":"https://api.github.com/users/pbie42/following{/other_user}","gists_url":"https://api.github.com/users/pbie42/gists{/gist_id}","starred_url":"https://api.github.com/users/pbie42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbie42/subscriptions","organizations_url":"https://api.github.com/users/pbie42/orgs","repos_url":"https://api.github.com/users/pbie42/repos","events_url":"https://api.github.com/users/pbie42/events{/privacy}","received_events_url":"https://api.github.com/users/pbie42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-29T16:23:55Z","updated_at":"2017-05-29T23:52:55Z","closed_at":null,"body":"### Issue description or question\r\n\r\nI can't get rid of this quokka error no matter what I do. I have followed the guide on quokkajs.com to have it be compatible with babel and have followed how to set up babel on their site and no matter what I do I continue to get the 'unexpected token function' error. I am using typescript if that helps at all and the typescript compiler is not giving me any errors. Shouldn't need anymore than the lines of code I've provided as it just keeps telling me function is an unexpected token. Does anyone know how to fix this?\r\n\r\n### Quokka.js file\r\n\r\n```javascript\r\nasync function printSearchResults(bookCategory: Category) {\r\n   let foundBooks = await getBooksByCategory(bookCategory)\r\n   console.log(foundBooks)\r\n}\r\n```\r\n\r\n### Sample repository link\r\n\r\n*If the issue can not be reproduced just using the quokka file above (for example because it requires/imports some files from your project), please create a small repository where the issue can be reproduced.* \r\n\r\n### Quokka.js Console Output\r\n\r\n```\r\n​​​​Quokka #1 (node: v7.3.0, TypeScript: v2.3.2)​​​​\r\n​​​​\r\n​​Unexpected token function​​\r\n  at ​​​Object.exports.runInThisContext​​​ ​vm.js:78​\r\n```\r\n\r\n### Code editor version\r\n\r\nVisual Studio Code v1.12.2\r\n\r\n### OS name and version\r\n\r\nOSX v10.12.4\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wallabyjs/quokka/issues/comments/304745360","html_url":"https://github.com/wallabyjs/quokka/issues/58#issuecomment-304745360","issue_url":"https://api.github.com/repos/wallabyjs/quokka/issues/58","id":304745360,"user":{"login":"ArtemGovorov","id":979966,"avatar_url":"https://avatars2.githubusercontent.com/u/979966?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemGovorov","html_url":"https://github.com/ArtemGovorov","followers_url":"https://api.github.com/users/ArtemGovorov/followers","following_url":"https://api.github.com/users/ArtemGovorov/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGovorov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGovorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGovorov/subscriptions","organizations_url":"https://api.github.com/users/ArtemGovorov/orgs","repos_url":"https://api.github.com/users/ArtemGovorov/repos","events_url":"https://api.github.com/users/ArtemGovorov/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGovorov/received_events","type":"User","site_admin":false},"created_at":"2017-05-29T23:52:55Z","updated_at":"2017-05-29T23:52:55Z","body":"Just tried a new Quokka for your node and TypeScript version, and everything is working for me:\r\n\r\n![screen shot 2017-05-30 at 9 50 29 am](https://cloud.githubusercontent.com/assets/979966/26563929/8ccc33b4-451d-11e7-9fb7-38119669df6c.png)\r\n\r\n- Are you sure that this function code is causing the issue and not some other code? \r\n- Could you please share your project's `tsconfig.json` file?"}}
{"actor":{"display_login":"ArtemGovorov"}}