{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6880","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6880/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6880/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6880/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/6880","id":346032670,"node_id":"MDU6SXNzdWUzNDYwMzI2NzA=","number":6880,"title":"[plugin-postcss] v2 postcss plugin causes build (but not develop) to fail","user":{"login":"seaneking","id":6374876,"node_id":"MDQ6VXNlcjYzNzQ4NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/6374876?v=4","gravatar_id":"","url":"https://api.github.com/users/seaneking","html_url":"https://github.com/seaneking","followers_url":"https://api.github.com/users/seaneking/followers","following_url":"https://api.github.com/users/seaneking/following{/other_user}","gists_url":"https://api.github.com/users/seaneking/gists{/gist_id}","starred_url":"https://api.github.com/users/seaneking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seaneking/subscriptions","organizations_url":"https://api.github.com/users/seaneking/orgs","repos_url":"https://api.github.com/users/seaneking/repos","events_url":"https://api.github.com/users/seaneking/events{/privacy}","received_events_url":"https://api.github.com/users/seaneking/received_events","type":"User","site_admin":false},"labels":[{"id":708055337,"node_id":"MDU6TGFiZWw3MDgwNTUzMzc=","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/%F0%9F%93%8D%20status:%20needs%20more%20info","name":"📍 status: needs more info","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-31T04:40:33Z","updated_at":"2018-08-04T06:41:14Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--\r\n  To make it easier for us to help you — please follow the suggested format below.\r\n\r\n  Useful Links:\r\n  - Documentation: https://www.gatsbyjs.org/docs/\r\n  - How to File an Issue: https://www.gatsbyjs.org/docs/how-to-file-an-issue/\r\n\r\n  Before opening a new issue, please search existing issues https://github.com/gatsbyjs/gatsby/issues\r\n-->\r\n\r\n## Description\r\n\r\nIncluding the new `gatsby-plugin-postcss` plugin in a v2 site is causing prod build to fail, but dev mode works fine. \r\n\r\n```sh\r\n  28 | // Run the specified API in any plugins that have implemented it\r\n  29 | module.exports = (api, args, defaultReturn) => {\r\n> 30 |   if (!apis[api]) {\r\n     |        ^\r\n  31 |     console.log(`This API doesn't exist`, api)\r\n  32 |   }\r\n  33 |\r\n\r\n  WebpackError: ./src/components/.../styles.module.css\r\n\r\n - api-runner-ssr.js:30 childCompiler.runAsChild\r\n    lib/.cache/api-runner-ssr.js:30:8\r\n\r\n  ...\r\n```\r\n\r\n### Steps to reproduce\r\n\r\nInclude `gatsby-plugin-postcss` and try to build site.\r\n\r\n### Expected result\r\n\r\nShould work the same as develop build.\r\n\r\n### Actual result\r\n\r\nProduction build breaks when compiling HTML.\r\n\r\n### Environment\r\n\r\n<!--\r\n  Required. Run `gatsby info --clipboard` in your gatsby project directory and paste its contents here.\r\n  Not working? You may need to update your global gatsby-cli - `npm install -g gatsby-cli`\r\n-->\r\n\r\n```sh\r\nSystem:\r\n    OS: macOS High Sierra 10.13.6\r\n    CPU: x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz\r\n    Shell: 5.5.1 - /usr/local/bin/zsh\r\n  Binaries:\r\n    Node: 9.0.0 - /usr/local/bin/node\r\n    npm: 6.2.0 - /usr/local/bin/npm\r\n  Browsers:\r\n    Chrome: 67.0.3396.99\r\n    Firefox: 60.0.1\r\n    Safari: 11.1.2\r\n  npmPackages:\r\n    gatsby: next => 2.0.0-beta.61\r\n    gatsby-image: next => 2.0.0-beta.7\r\n    gatsby-plugin-manifest: next => 2.0.2-beta.3\r\n    gatsby-plugin-netlify: next => 2.0.0-beta.4\r\n    gatsby-plugin-nprogress: next => 2.0.0-beta.4\r\n    gatsby-plugin-offline: next => 2.0.0-beta.5\r\n    gatsby-plugin-postcss: ^1.0.0 => 1.0.0\r\n    gatsby-plugin-react-css-modules: next => 2.0.0-beta.4\r\n    gatsby-plugin-react-helmet: next => 3.0.0-beta.4\r\n    gatsby-plugin-segment: latest => 1.0.2\r\n    gatsby-plugin-sharp: next => 2.0.0-beta.7\r\n    gatsby-plugin-sitemap: next => 2.0.0-beta.3\r\n    gatsby-plugin-svgr: github:coreyward/gatsby-plugin-svgr#gatsby2-compatibility => 1.0.0\r\n    gatsby-source-prismic: next => 2.0.0-alpha.2\r\n    gatsby-transformer-sharp: next => 2.1.1-beta.6\r\n  npmGlobalPackages:\r\n    gatsby-cli: 1.1.58\r\n    gatsby-plugin-react-css-modules: 2.0.0-beta.1\r\n```"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/410428302","html_url":"https://github.com/gatsbyjs/gatsby/issues/6880#issuecomment-410428302","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6880","id":410428302,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQyODMwMg==","user":{"login":"andrewn","id":1762,"node_id":"MDQ6VXNlcjE3NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/1762?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewn","html_url":"https://github.com/andrewn","followers_url":"https://api.github.com/users/andrewn/followers","following_url":"https://api.github.com/users/andrewn/following{/other_user}","gists_url":"https://api.github.com/users/andrewn/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewn/subscriptions","organizations_url":"https://api.github.com/users/andrewn/orgs","repos_url":"https://api.github.com/users/andrewn/repos","events_url":"https://api.github.com/users/andrewn/events{/privacy}","received_events_url":"https://api.github.com/users/andrewn/received_events","type":"User","site_admin":false},"created_at":"2018-08-04T06:41:14Z","updated_at":"2018-08-04T06:41:14Z","author_association":"NONE","body":"🤦‍♂️ 🤦‍♂️ 🤦‍♂️  I'm *so* sorry about this @youngboy. You're completely right. Upgrading to `gatsby-plugin-postcss@2.0.0-beta.2` works perfectly.\r\n\r\nThanks so much for figuring this out!"}}
{"actor":{"display_login":"andrewn"}}