{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15594","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15594/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15594/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15594/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/15594","id":466268972,"node_id":"MDU6SXNzdWU0NjYyNjg5NzI=","number":15594,"title":"[gatsby-plugin-mdx] Plugin has generated no Gatsby nodes","user":{"login":"yamalight","id":365944,"node_id":"MDQ6VXNlcjM2NTk0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/365944?v=4","gravatar_id":"","url":"https://api.github.com/users/yamalight","html_url":"https://github.com/yamalight","followers_url":"https://api.github.com/users/yamalight/followers","following_url":"https://api.github.com/users/yamalight/following{/other_user}","gists_url":"https://api.github.com/users/yamalight/gists{/gist_id}","starred_url":"https://api.github.com/users/yamalight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamalight/subscriptions","organizations_url":"https://api.github.com/users/yamalight/orgs","repos_url":"https://api.github.com/users/yamalight/repos","events_url":"https://api.github.com/users/yamalight/events{/privacy}","received_events_url":"https://api.github.com/users/yamalight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-10T12:02:25Z","updated_at":"2019-07-10T12:47:34Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\n`gatsby-plugin-mdx` generates no nodes for GraphQL.\r\nI assume this is a bug since it looks like it _should_ generate them, but it's not documented anywhere - if that's not the case, please close the issue.\r\n\r\n### Steps to reproduce\r\n\r\nHere's a repo with basic project: https://github.com/yamalight/gatsby-mdx-bug-demo\r\n\r\nSteps to re-create:\r\n\r\n1. Create new gatsby project from default starter\r\n2. Install `gatsby-plugin-mdx` and add it to config\r\n3. Move `src/pages/index.js` to `src/pages/index.mdx` and remove component export\r\n4. Run `npm start`\r\n\r\n### Expected result\r\n\r\nQuerying GraphQL endpoint with the following query should return 1 result:\r\n\r\n```\r\nquery MyQuery {\r\n  allMdx {\r\n    totalCount\r\n    edges {\r\n      node {\r\n        id\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n### Actual result\r\n\r\nThe query returns zero result, but the page actually renders fine and is present in `allSitePage`.\r\n\r\nNote: during `npm start` gatsby shows the following warning in the console:\r\n\r\n```\r\nwarn The gatsby-plugin-mdx plugin has generated no Gatsby nodes. Do you need it?\r\n```\r\n\r\n### Environment\r\n\r\nNote: I've also tried it on Debian machine with Node 12.6.0 with same result.\r\n\r\n  System:\r\n    OS: macOS 10.14.5\r\n    CPU: (8) x64 Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz\r\n    Shell: 5.3 - /bin/zsh\r\n  Binaries:\r\n    Node: 12.5.0 - /usr/local/bin/node\r\n    Yarn: 1.16.0 - /usr/local/bin/yarn\r\n    npm: 6.10.0 - /usr/local/bin/npm\r\n  Languages:\r\n    Python: 2.7.16 - /usr/local/bin/python\r\n  Browsers:\r\n    Chrome: 75.0.3770.100\r\n    Safari: 12.1.1\r\n  npmPackages:\r\n    gatsby: ^2.13.12 => 2.13.12 \r\n    gatsby-image: ^2.2.4 => 2.2.4 \r\n    gatsby-plugin-manifest: ^2.2.1 => 2.2.1 \r\n    gatsby-plugin-mdx: ^1.0.9 => 1.0.9 \r\n    gatsby-plugin-offline: ^2.2.1 => 2.2.1 \r\n    gatsby-plugin-react-helmet: ^3.1.0 => 3.1.0 \r\n    gatsby-plugin-sharp: ^2.2.3 => 2.2.3 \r\n    gatsby-source-filesystem: ^2.1.3 => 2.1.3 \r\n    gatsby-transformer-sharp: ^2.2.1 => 2.2.1 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/510046255","html_url":"https://github.com/gatsbyjs/gatsby/issues/15594#issuecomment-510046255","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15594","id":510046255,"node_id":"MDEyOklzc3VlQ29tbWVudDUxMDA0NjI1NQ==","user":{"login":"yamalight","id":365944,"node_id":"MDQ6VXNlcjM2NTk0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/365944?v=4","gravatar_id":"","url":"https://api.github.com/users/yamalight","html_url":"https://github.com/yamalight","followers_url":"https://api.github.com/users/yamalight/followers","following_url":"https://api.github.com/users/yamalight/following{/other_user}","gists_url":"https://api.github.com/users/yamalight/gists{/gist_id}","starred_url":"https://api.github.com/users/yamalight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamalight/subscriptions","organizations_url":"https://api.github.com/users/yamalight/orgs","repos_url":"https://api.github.com/users/yamalight/repos","events_url":"https://api.github.com/users/yamalight/events{/privacy}","received_events_url":"https://api.github.com/users/yamalight/received_events","type":"User","site_admin":false},"created_at":"2019-07-10T12:47:34Z","updated_at":"2019-07-10T12:47:34Z","author_association":"NONE","body":"Okay, I think I've figured it out - if I add filesystem source that processes pages before mdx plugin - it starts working.\r\nIs that expected behavior? 🤔 "}}
{"actor":{"display_login":"yamalight"}}