{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3804","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3804/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3804/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3804/events","html_url":"https://github.com/nuxt/nuxt.js/issues/3804","id":354236976,"node_id":"MDU6SXNzdWUzNTQyMzY5NzY=","number":3804,"title":"[edge] vue-style-loader didn't discriminate between server and client","user":{"login":"stevefan1999","id":29133953,"node_id":"MDQ6VXNlcjI5MTMzOTUz","avatar_url":"https://avatars2.githubusercontent.com/u/29133953?v=4","gravatar_id":"","url":"https://api.github.com/users/stevefan1999","html_url":"https://github.com/stevefan1999","followers_url":"https://api.github.com/users/stevefan1999/followers","following_url":"https://api.github.com/users/stevefan1999/following{/other_user}","gists_url":"https://api.github.com/users/stevefan1999/gists{/gist_id}","starred_url":"https://api.github.com/users/stevefan1999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevefan1999/subscriptions","organizations_url":"https://api.github.com/users/stevefan1999/orgs","repos_url":"https://api.github.com/users/stevefan1999/repos","events_url":"https://api.github.com/users/stevefan1999/events{/privacy}","received_events_url":"https://api.github.com/users/stevefan1999/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":9,"created_at":"2018-08-27T08:59:43Z","updated_at":"2018-09-08T11:01:16Z","closed_at":"2018-08-27T14:41:22Z","author_association":"NONE","body":"### Version\n\n[2.0.0-25586998.83d9dc4](https://github.com/nuxt.js/releases/tag/2.0.0-25586998.83d9dc4)\n\n### Reproduction link\n\n[https://github.com/stevefan1999/nuxt-cache-bug-repo/tree/master/](https://github.com/stevefan1999/nuxt-cache-bug-repo/tree/master/)\n\n### Reproduction step\n1. Flatten the project and start Nuxt\n2. Browse the index page after listen success\n\n### What is expected ?\n\n\"It just works\"\n\n### What is actually happening?\n\nIt will show up this generic error regardlessly on any files that use styling:\n```\n√ success Nuxt files generated\ni info Warming up worker pools\n√ success Worker pools ready\n× error ReferenceError: document is not defined\n  at addStyle (node_modules/vue-style-loader/lib/addStylesClient.js:120:0)\n  at addStylesToDom (node_modules/vue-style-loader/lib/addStylesClient.js:104:0)\n  at addStylesClient (node_modules/vue-style-loader/lib/addStylesClient.js:58:0)\n  at Object../node_modules/vuetify/dist/vuetify.css (node_modules/vuetify/dist/vuetify.css?4433:9:0)\n  at __webpack_require__ (webpack/bootstrap:25:0)\n  at Module../dist/.nuxt/App.js (dist/.nuxt/App.js:1:0)\n  at __webpack_require__ (webpack/bootstrap:25:0)\n  at Module../dist/.nuxt/index.js (dist/.nuxt/index.js:1:0)\n  at __webpack_require__ (webpack/bootstrap:25:0)\n  at Module../dist/.nuxt/server.js (dist/.nuxt/server.js:1:0)\n  at __webpack_require__ (webpack/bootstrap:25:0)\n  at Object.0 (server-bundle.js:4547:18)\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```\n\n### Additional comments?\n\nSomewhat related: https://github.com/vuejs/vue-style-loader/issues/16\nOS: `Microsoft Windows [Version 10.0.17134.165]`\nNode: `v10.9.0`\nYarn: `1.9.4`\n\n\n\n\n\n\n<!--cmty-->\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/c7631\">#c7631</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/419633265","html_url":"https://github.com/nuxt/nuxt.js/issues/3804#issuecomment-419633265","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3804","id":419633265,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTYzMzI2NQ==","user":{"login":"stevefan1999","id":29133953,"node_id":"MDQ6VXNlcjI5MTMzOTUz","avatar_url":"https://avatars2.githubusercontent.com/u/29133953?v=4","gravatar_id":"","url":"https://api.github.com/users/stevefan1999","html_url":"https://github.com/stevefan1999","followers_url":"https://api.github.com/users/stevefan1999/followers","following_url":"https://api.github.com/users/stevefan1999/following{/other_user}","gists_url":"https://api.github.com/users/stevefan1999/gists{/gist_id}","starred_url":"https://api.github.com/users/stevefan1999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevefan1999/subscriptions","organizations_url":"https://api.github.com/users/stevefan1999/orgs","repos_url":"https://api.github.com/users/stevefan1999/repos","events_url":"https://api.github.com/users/stevefan1999/events{/privacy}","received_events_url":"https://api.github.com/users/stevefan1999/received_events","type":"User","site_admin":false},"created_at":"2018-09-08T11:01:16Z","updated_at":"2018-09-08T11:01:16Z","author_association":"NONE","body":"@clarkdo Of course I want caches😥I'm working on a live reload environment (fortunately full reboot is reflected on server-side code only) and I cannot take that ~15s warmup time of Nuxt anymore...\n\n<!--cmty_prevent_hook-->"}}
{"actor":{"display_login":"stevefan1999"}}