payload: {"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5661","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5661/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5661/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5661/events","html_url":"https://github.com/nuxt/nuxt.js/issues/5661","id":440772837,"node_id":"MDU6SXNzdWU0NDA3NzI4Mzc=","number":5661,"title":"Object(...) is not a function","user":{"login":"pimlie","id":1067403,"node_id":"MDQ6VXNlcjEwNjc0MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1067403?v=4","gravatar_id":"","url":"https://api.github.com/users/pimlie","html_url":"https://github.com/pimlie","followers_url":"https://api.github.com/users/pimlie/followers","following_url":"https://api.github.com/users/pimlie/following{/other_user}","gists_url":"https://api.github.com/users/pimlie/gists{/gist_id}","starred_url":"https://api.github.com/users/pimlie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pimlie/subscriptions","organizations_url":"https://api.github.com/users/pimlie/orgs","repos_url":"https://api.github.com/users/pimlie/repos","events_url":"https://api.github.com/users/pimlie/events{/privacy}","received_events_url":"https://api.github.com/users/pimlie/received_events","type":"User","site_admin":false},"labels":[{"id":882702378,"node_id":"MDU6TGFiZWw4ODI3MDIzNzg=","url":"https://api.github.com/repos/nuxt/nuxt.js/labels/cmty:bug-report","name":"cmty:bug-report","color":"f7b2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-05-06T16:06:02Z","updated_at":"2019-05-08T07:25:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Version\n\n[v2.6.3](https://github.com/nuxt.js/releases/tag/v2.6.3)\n\n### Reproduction link\n\n[https://nuxtjs.org](https://nuxtjs.org)\n\n### Steps to reproduce\n\nNot sure yet unfortunately\n\n### What is expected ?\n\nNuxt works\n\n### What is actually happening?\n\nAn `Object(...) is not a function` error is shown when `setContext` is called in `.nuxt/index.js`\n\nSometimes during development this error happens. I am not exactly sure yet what triggers it, sometimes it happens once a day and sometimes 10+ times.\n\nWhat I know about it so far:\n- The error is caused because the `.nuxt/utils` import returns an empty object\n- The utils file does exist and when executed with `--experimental-modules` node has a 0 exit status (so no syntax errors in the file)\n- Deleting the utils module from require.cache did not solve the issue\n- Restarting the dev server made the error go away\n- It doesnt seem to have to do with a long running dev server, this morning I had it within 20mins of starting work\n\nAlthough restarting the dev server is a good enough solution,  rebuilding the whole project can take quite a bit of time which can be frustrating.\n\n### Additional comments?\n\nFirst reported here: https://stackoverflow.com/questions/55949558/how-to-solve-object-is-not-a-function-error-in-nuxt\n\nScreenshot of error: https://i.imgur.com/CEoHxQq.png\n\n\n\n<!--cmty--><!--cmty_prevent_hook-->\n<div align=\"right\"><sub><em>This bug report is available on <a href=\"https://cmty.app/nuxt\">Nuxt</a> community (<a href=\"https://cmty.app/nuxt/nuxt.js/issues/c9157\">#c9157</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/490379043","html_url":"https://github.com/nuxt/nuxt.js/issues/5661#issuecomment-490379043","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5661","id":490379043,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MDM3OTA0Mw==","user":{"login":"pimlie","id":1067403,"node_id":"MDQ6VXNlcjEwNjc0MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1067403?v=4","gravatar_id":"","url":"https://api.github.com/users/pimlie","html_url":"https://github.com/pimlie","followers_url":"https://api.github.com/users/pimlie/followers","following_url":"https://api.github.com/users/pimlie/following{/other_user}","gists_url":"https://api.github.com/users/pimlie/gists{/gist_id}","starred_url":"https://api.github.com/users/pimlie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pimlie/subscriptions","organizations_url":"https://api.github.com/users/pimlie/orgs","repos_url":"https://api.github.com/users/pimlie/repos","events_url":"https://api.github.com/users/pimlie/events{/privacy}","received_events_url":"https://api.github.com/users/pimlie/received_events","type":"User","site_admin":false},"created_at":"2019-05-08T07:25:30Z","updated_at":"2019-05-08T07:25:30Z","author_association":"CONTRIBUTOR","body":"Its also not unique for `.nuxt/utils`, I just received the error with `.nuxt/server.js` for the `.nuxt/index.js` import (the not a function error was on createApp this time). But because I tried to add some debug logs to that file, the dev server reloaded and now I get:\r\n\r\n```\r\nERROR in ./.nuxt/utils.js\r\nModule build failed (from ./node_modules/babel-loader/lib/index.js):\r\nSyntaxError: /var/project/.nuxt/utils.js: Unterminated string constant (454:27)\r\n\r\n  452 |       const token = tokens[i]\r\n  453 | \r\n> 454 |       if (typeof token === 'st\r\n      |                            ^\r\n    at Object.raise (/var/project/node_modules/@babel/parser/lib/index.js:6322:17)\r\n   ...\r\n```\r\nbut if I look inside `.nuxt/utils` it just shows:\r\n```\r\n    for (let i = 0; i < tokens.length; i++) {\r\n      const token = tokens[i]\r\n\r\n      if (typeof token === 'string') {\r\n        path += token\r\n\r\n        continue\r\n      }\r\n```\r\nSo apparently there is either some memory corruptions in the dev server somewhere or an IO issue which doesnt or only partially reads the module file?\r\n"}}
other: {"actor":{"display_login":"pimlie"}}