birkir / gatsby-source-prismic-graphql

Gatsby source plugin for Prismic GraphQL
MIT License
137 stars 75 forks source link

Error on build #58

Closed samburgers closed 5 years ago

samburgers commented 5 years ago

First time looking at this source plugin, seem to be getting this error on build

 ERROR #11321  PLUGIN

"gatsby-source-prismic-graphql" threw an error while running the sourceNodes lifecycle:

The "options.agent" property must be one of type Agent-like Object, undefined, or false. Received type function

Steps to reproduce:

thanks!

ghost commented 5 years ago

Also having this exact issue. Have been looking for solution for few hours now. Anyone has any idea?

samburgers commented 5 years ago

Not sure if related, but there appears to be a similar error over here https://github.com/axios/axios/issues/1627

samburgers commented 5 years ago

Ok, looks like we might need to force revert prismic-javascript down to 2.0.3 like here:

https://github.com/prismicio/prismic-javascript/issues/92

ghost commented 5 years ago

yeah reverting it works, thanks man

arnaudlewis commented 5 years ago

It's fixed in prismic-javascript@2.1.1. Sorry for the inconvenience.