{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/5259","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/5259/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/5259/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/5259/events","html_url":"https://github.com/webpack/webpack/issues/5259","id":242091566,"number":5259,"title":"Missing module at 1st build, present at consecutive build only from webpack@3","user":{"login":"JSteunou","id":2323127,"avatar_url":"https://avatars0.githubusercontent.com/u/2323127?v=3","gravatar_id":"","url":"https://api.github.com/users/JSteunou","html_url":"https://github.com/JSteunou","followers_url":"https://api.github.com/users/JSteunou/followers","following_url":"https://api.github.com/users/JSteunou/following{/other_user}","gists_url":"https://api.github.com/users/JSteunou/gists{/gist_id}","starred_url":"https://api.github.com/users/JSteunou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSteunou/subscriptions","organizations_url":"https://api.github.com/users/JSteunou/orgs","repos_url":"https://api.github.com/users/JSteunou/repos","events_url":"https://api.github.com/users/JSteunou/events{/privacy}","received_events_url":"https://api.github.com/users/JSteunou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-11T15:35:02Z","updated_at":"2017-07-11T16:07:20Z","closed_at":null,"body":"<!-- Please don't delete this template or we'll close your issue -->\r\n<!-- Before creating an issue please make sure you are using the latest version of webpack. -->\r\n<!-- Also consider trying the webpack@beta version, maybe it's already fixed. -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\n\r\n*bug*\r\n\r\n<!-- Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). -->\r\n<!-- Issues which contain questions or support requests will be closed. -->\r\n\r\n**What is the current behavior?**\r\n\r\nHaving this error when updating from webpack@2 to webpack@3 on a dynamic css load\r\n\r\n```\r\nvendor-2d14daf….js:55 Uncaught (in promise) TypeError: Cannot read property 'call' of undefined\r\n    at __webpack_require__ (vendor-2d14daf….js:55)\r\n```\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\n<!-- A great way to do this is to provide your configuration via a GitHub gist. -->\r\n<!-- Best provide a minimal reproduceable repo -->\r\n<!-- If your issue is caused by a plugin or loader file the issue on the plugin/loader repo -->\r\n\r\nIt might be an issue from the loader but I dont know for sure.\r\n\r\nI have this syntax \r\n\r\n```js\r\n            require.ensure(['../../assets/css/foo.styl'], function(require) {\r\n                require('!!style-loader!css-loader!stylus-loader!../../assets/css/foo.styl');\r\n            }, 'foo-styl');\r\n```\r\n\r\nI also tried this new one, but same issue\r\n\r\n```js\r\nimport(/* webpackChunkName: \"foo-styl\" */ '!style-loader!css-loader!stylus-loader!../../assets/css/foo.styl');\r\n```\r\n\r\nUsing webpack dev/watch mode I have the error, but if I hit *save* on the file, webpack watch mode trigger rebuild / reload and the error is gone, all working fine. I reproduce the error by stopping webpack and launch it again or with a production build.\r\n\r\n**What is the expected behavior?**\r\n\r\nCSS should be inject like with webpack@2\r\n\r\n**If this is a feature request, what is motivation or use case for changing the behavior?**\r\n\r\n**Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.**\r\n\r\nUsing Chrome@59 nodejs@8.1 webpack@3.1.0 Ubuntu 17.04\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/314493294","html_url":"https://github.com/webpack/webpack/issues/5259#issuecomment-314493294","issue_url":"https://api.github.com/repos/webpack/webpack/issues/5259","id":314493294,"user":{"login":"JSteunou","id":2323127,"avatar_url":"https://avatars0.githubusercontent.com/u/2323127?v=3","gravatar_id":"","url":"https://api.github.com/users/JSteunou","html_url":"https://github.com/JSteunou","followers_url":"https://api.github.com/users/JSteunou/followers","following_url":"https://api.github.com/users/JSteunou/following{/other_user}","gists_url":"https://api.github.com/users/JSteunou/gists{/gist_id}","starred_url":"https://api.github.com/users/JSteunou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSteunou/subscriptions","organizations_url":"https://api.github.com/users/JSteunou/orgs","repos_url":"https://api.github.com/users/JSteunou/repos","events_url":"https://api.github.com/users/JSteunou/events{/privacy}","received_events_url":"https://api.github.com/users/JSteunou/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T16:07:20Z","updated_at":"2017-07-11T16:07:20Z","body":"I have this default config for `.styl` \r\n\r\n```\r\n                {\r\n                    test: /\\.styl$/,\r\n                    use: cssExtractor.extract({\r\n                        fallback: 'style-loader',\r\n                        use: ['css-loader?-autoprefixer', 'stylus-loader'],\r\n                        publicPath: '../'\r\n                    })\r\n                },\r\n```\r\n\r\nThat's why I'm using `!` or `!!` to bypass config in this use case, without success."}}
{"actor":{"display_login":"JSteunou"}}