-
I have a static site with dynamic data fetching capabilities utilizing:
Here's a minimal repro demonstrating a basic configuration of apollo client that is very much inline with both Gatsby and Apollo Client documentation. If you're working at Gatsby and reading this, here's a build log for this minimal reproduction hosted on Gatsby Cloud. When building the site, we get this particularly ominous message, emphasis on "future builds will need to rebuild all pages":
My questions are:
Thanks in advance for any insights! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @ardiewen , based on those logs it does appear that would impact Incremental Builds, but not Cloud Builds. I've contacted some other team members to help address the larger questions on node-fetch + v3. |
Beta Was this translation helpful? Give feedback.
-
Marking this as answered as this as it appears to be an issue with the particular fetch library being used.
TL;DR: use |
Beta Was this translation helpful? Give feedback.
Marking this as answered as this as it appears to be an issue with the particular fetch library being used.
isomorphic-fetch
DOESN'T have this issue whilecross-fetch
ANDisomorphic-unfetch
doisomorphic-fetch
is implemented as a polyfill, while the others are implemented as ponyfill, so i tested the other two libraries as polyfills but unfortunately they still throw the same warning...isomorphic-fetch
throws other errors / warnings, such as Node.js - realFetch.call is not a function matthew-andrews/isomorphic-fetch#194 , which is why we switched to cross-fetch in the first place.TL;DR: use
isomorphic-fetch