Closed outlandnish closed 5 years ago
Apologies for the delayed response! This mediaType
gets added at this line for anyone that might want to fix this before I can get to it. Otherwise I'll work on having this fixed by the end of this week.
Thanks for bringing this to our attention :+1:!
@nsamala Sorry for the delay with this! New version 3.0.2 should be up on npm, if you wouldn't mind testing.
Once you've confirmed it works on your end, I'll close this issue. Thanks!
No response from OP, going to close this for now. Please re-open if this is still an issue! Thanks.
Pre-requisites
Description
When running
gatsby build
on a project that uses bothgatsby-source-stripe
andgatsby-transformer-json
, the build fails with an error like the following:With a non-zero exit code, the build fails.
Steps to Reproduce
gatsby-source-stripe
.env
filegatsby-transformer-json
to plugins section ofgatsby-config.js
gatsby build
Expected behavior:
gatsby-transformer-node
does nothing to the Stripe object nodesActual behavior:
gatsby-transformer-node
sees anapplication/json
node internal type and tries to transform it.Reproduces how often: 100% of builds
Versions
os: [version] node: 10.13.0 npm: 6.7.0 gatsby: 2.10.4 gatsby-source-stripe: 3.0.1
Additional Information
If you modify the plugin to use a different internal mediaType in
StripeObject.js
, the error disappears.