{"action":"opened","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/3981","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/3981/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/3981/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/3981/events","html_url":"https://github.com/storybooks/storybook/issues/3981","id":348609282,"node_id":"MDU6SXNzdWUzNDg2MDkyODI=","number":3981,"title":"Bogus warning: impossible to import loader for .js","user":{"login":"zsgalusz","id":4671945,"node_id":"MDQ6VXNlcjQ2NzE5NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/4671945?v=4","gravatar_id":"","url":"https://api.github.com/users/zsgalusz","html_url":"https://github.com/zsgalusz","followers_url":"https://api.github.com/users/zsgalusz/followers","following_url":"https://api.github.com/users/zsgalusz/following{/other_user}","gists_url":"https://api.github.com/users/zsgalusz/gists{/gist_id}","starred_url":"https://api.github.com/users/zsgalusz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsgalusz/subscriptions","organizations_url":"https://api.github.com/users/zsgalusz/orgs","repos_url":"https://api.github.com/users/zsgalusz/repos","events_url":"https://api.github.com/users/zsgalusz/events{/privacy}","received_events_url":"https://api.github.com/users/zsgalusz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T07:37:13Z","updated_at":"2018-08-08T07:37:13Z","closed_at":null,"author_association":"NONE","body":"If you are reporting a bug or requesting support, start here:\r\n### Bug or support request summary\r\n\r\nThis may already be an older issue, but I just noticed it. When building storybook it shows a nonsensical warning:\r\n\r\n```\r\ninfo @storybook/react v4.0.0-alpha.16\r\ninfo\r\ninfo => Loading custom addons config.\r\nWARN => Custom configuration file redacted/.storybook/webpack.config.js is detected\r\nWARN    but impossible to import loader for .js\r\ninfo => Loading custom webpack config (full-control mode).\r\n```\r\n\r\nFrom a quick investigation of the [webpack config loader](https://github.com/storybooks/storybook/blob/master/lib/core/src/server/loadCustomWebpackConfig.js) this is because  `interpret` returns null for `.js` extensions (which is fine, since no loader is needed for them), which on the other hand storybook's webpack config loader misinterprets and warns that it can't load the loader (which it doesn't need). Regardless of the warning then it proceeds to require it so this is just a minor cosmetical issue.\r\n\r\n### Steps to reproduce\r\n\r\nBuild storybook with a custom webpack config in a js file. At the start of the build, it will show the above warning.\r\n\r\n### Please specify which version of Storybook and optionally any affected addons that you're running\r\n\r\n- @storybook/react v4.0.0-alpha.16\r\n\r\n### Affected platforms \r\n\r\n- I assume any, so long as a custom webpack.config.js file is present"}}
{"actor":{"display_login":"zsgalusz"}}