gatsby-transformer-remark: Throws an error when constructor
is used as a field value
#22508
Labels
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
type: bug
An issue or pull request relating to a bug in Gatsby
Description
I use a tag system for my website's blog. I recently wrote a post about instantiating classes using a
constructor
function -- I added this as a tag to the post andgastsby-node
broke.So too did my graphql query on my
tags
page.I think this is likely because of some conversion where the runtime is viewing
constructor
as a reserved word... though this is the only reserved word I've come across with this behavior.Steps to reproduce
Minimal Reproduction:
gatsby develop
-- you should see an error./content/boo.md
and re-run -- you should see the error disappearExpected result
I should be able to have a tag of any valid string and not run into the situation where it breaks the build of my site.
Actual result
Environment
The text was updated successfully, but these errors were encountered: