printTypeDefinitions throws TypeError: flatMap is not a function #19191
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
Edit: I found the bug. See second comment.
Description
I am trying to use
gatsby-plugin-schema-snapshot
and it throwsTypeError: flatMap is not a function
.This throws as well:
Steps to reproduce
gatsby-plugin-schema-snapshot
to the project or the above mentioned snippet ingatsby-node.js
gatsby develop
orgatsby build
Demo repo
Full log on Netlify
I was initially on NodeJS 10 (like Netlify is on the build above). I tried upgrading to Node 13 in case the polyfill was causing the problem but no luck.
Expected result
Should produce a
schema.gql
fileActual result
TypeError: flatMap is not a function
See full log on Netlify
Environment
The text was updated successfully, but these errors were encountered: