{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3740","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3740/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3740/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3740/events","html_url":"https://github.com/nuxt/nuxt.js/issues/3740","id":351039648,"node_id":"MDU6SXNzdWUzNTEwMzk2NDg=","number":3740,"title":"[edge] Server-side rendering get vue-loader error","user":{"login":"jackiecookie","id":8380582,"node_id":"MDQ6VXNlcjgzODA1ODI=","avatar_url":"https://avatars3.githubusercontent.com/u/8380582?v=4","gravatar_id":"","url":"https://api.github.com/users/jackiecookie","html_url":"https://github.com/jackiecookie","followers_url":"https://api.github.com/users/jackiecookie/followers","following_url":"https://api.github.com/users/jackiecookie/following{/other_user}","gists_url":"https://api.github.com/users/jackiecookie/gists{/gist_id}","starred_url":"https://api.github.com/users/jackiecookie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackiecookie/subscriptions","organizations_url":"https://api.github.com/users/jackiecookie/orgs","repos_url":"https://api.github.com/users/jackiecookie/repos","events_url":"https://api.github.com/users/jackiecookie/events{/privacy}","received_events_url":"https://api.github.com/users/jackiecookie/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":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-16T03:10:55Z","updated_at":"2018-08-18T16:16:18Z","closed_at":"2018-08-18T16:16:18Z","author_association":"NONE","body":"### Version\n\n[edge](https://github.com/nuxt.js/releases/tag/edge)\n\n### Reproduction link\n\n[https://github.com/imow-frontend/imow/tree/feat-nuxt%40edge](https://github.com/imow-frontend/imow/tree/feat-nuxt%40edge)\n\n### Steps to reproduce\n\nRunning nuxt@edge on Node 8.9.4 and Yarn 1.5.1:\n\n1: run `yarn dev` to start the development server which builds on express .everything compiles susses. the Server listening on http://127.0.0.1:3000.\n2: get the http://127.0.0.1:3000 you'll see the following error.\n\n```\n× error Error: Module build failed (from ./node_modules/vue-loader/index.js):\n  TypeError: Cannot read property 'vue' of undefined\n  at Object.module.exports (C:\\code\\imow\\node_modules\\vue-loader\\lib\\loader.js:61:18)\n  at Object../.nuxt/components/nuxt-error.vue (server-bundle.js:372:7)\n  at __webpack_require__ (webpack/bootstrap:25:0)\n  at Module../.nuxt/index.js (server-bundle.js:509:84)\n  at __webpack_require__ (webpack/bootstrap:25:0)\n  at Module../.nuxt/server.js (server-bundle.js:1024:64)\n  at __webpack_require__ (webpack/bootstrap:25:0)\n  at server-bundle.js:118:18\n  at Object.<anonymous> (server-bundle.js:121:10)\n  at evaluateModule (C:\\code\\imow\\node_modules\\vue-server-renderer\\build.js:8349:21)\n  at C:\\code\\imow\\node_modules\\vue-server-renderer\\build.js:8407:18\n  at new Promise (<anonymous>)\n  at C:\\code\\imow\\node_modules\\vue-server-renderer\\build.js:8399:14\n  at Object.renderToString (C:\\code\\imow\\node_modules\\vue-server-renderer\\build.js:8575:9)\n  at Renderer.renderRoute (C:\\code\\imow\\node_modules\\nuxt\\lib\\core\\renderer.js:343:41)\n  at Renderer.nuxtMiddleware (C:\\code\\imow\\node_modules\\nuxt\\lib\\core\\middleware\\nuxt.js:13:31)\n  at call (C:\\code\\imow\\node_modules\\connect\\index.js:239:7)\n```\n\n\n### What is expected ?\n\nThe server should not throw an error.\n\n### What is actually happening?\n\nCannot read property 'vue' of undefined\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/c7580\">#c7580</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/414069199","html_url":"https://github.com/nuxt/nuxt.js/issues/3740#issuecomment-414069199","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3740","id":414069199,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDA2OTE5OQ==","user":{"login":"clarkdo","id":4312154,"node_id":"MDQ6VXNlcjQzMTIxNTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4312154?v=4","gravatar_id":"","url":"https://api.github.com/users/clarkdo","html_url":"https://github.com/clarkdo","followers_url":"https://api.github.com/users/clarkdo/followers","following_url":"https://api.github.com/users/clarkdo/following{/other_user}","gists_url":"https://api.github.com/users/clarkdo/gists{/gist_id}","starred_url":"https://api.github.com/users/clarkdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarkdo/subscriptions","organizations_url":"https://api.github.com/users/clarkdo/orgs","repos_url":"https://api.github.com/users/clarkdo/repos","events_url":"https://api.github.com/users/clarkdo/events{/privacy}","received_events_url":"https://api.github.com/users/clarkdo/received_events","type":"User","site_admin":false},"created_at":"2018-08-18T16:16:18Z","updated_at":"2018-08-18T16:16:18Z","author_association":"MEMBER","body":"@jackiecookie `nuxt-edge`已经升级至`vue-loader 15.x`, 你可以移除`vue-loader`依赖 (nuxt已经依赖vue-loader 15):\r\n\r\n```bash\r\nyarn remove vue-loader\r\n\r\n// 或者\r\n\r\nnpm uninstall vue-loader\r\n```"}}
{"actor":{"display_login":"clarkdo"}}