Adding lowercase "graphql" to deck breaks parsing
See original GitHub issueTo reproduce just add the lowercased word “graphql” anywhere to your deck and start with mdx-deck deck.mdx
This is the error message printed
ERROR #85911 GRAPHQL
There was a problem parsing "/home/alfiehub/decks/deck.mdx"; any GraphQL
fragments or queries in this file were not processed.
This may indicate a syntax error in the code, or it may be a file type
that Gatsby does not know how to parse.
File: ../../deck.mdx
Issue Analytics
- State:
- Created 4 years ago
- Reactions:13
- Comments:7
Top Results From Across the Web
@upperCase, @lowerCase and @titleCase - GraphQL API for ...
The @upperCase , @lowerCase and @titleCase directives manipulate strings, changing them to upper, lower and title case respectively: History.
Read more >GraphQL specification
These key words may appear in lowercase and still retain their meaning unless ... All fields selected by the fragment will be added...
Read more >mdx-deck - Bountysource
Hello. In the sample I see how to use the Image component but how about images I have in my local repository? deck.mdx;...
Read more >GraphQL query best practices
Operation naming, GraphQL variables, and more. ... The cache enables your server to skip parsing and validating operations that it's encountered before, ...
Read more >What you need to know about GraphQL enums
Strings are case-sensitive and break GraphQL validations. Below is an example of how you might use the users query.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can confirm this is still an issue. Dang this was annoying.
I got the same error when creating a slide deck. After some digging, I found that the problem was in the file
node-mdules/gatsby/dist/query/file-parser.js
https://github.com/gatsbyjs/gatsby/blob/61f197d2c6deda2d45ba185df190301bb8219676/packages/gatsby/src/query/file-parser.js#L509-L517
After changing the
if
block the error went away and the slides were created.