anyone having issues with building your react apps...
# orm-help
t
anyone having issues with building your react apps with graphql-request?
w
Im using Apollo Client. Works like a charm!
But i also used graphql-request and didnt had a problem! Whats your problem?
t
Ton of these errors - only started occurring today
Copy code
ERROR in ./node_modules/graphql/index.mjs 78:0-82:708
Can't reexport the named export 'FragmentsOnCompositeTypesRule' from non EcmaScript module (only default export is available)
I changed graphql in package.json to use "1.6.0" instead of "^1.6.0". Fresh docker node images were trying to use something > 1.6.0 and failing.
a
Using Apollo client here too, it's too awesome
t
Apollo/relay was a bit overkill for our current needs (only a few requests, no subs or mutations) but yeah from the docs, apollo looks great.
h
I also use graphql-request for a small project and it worked perfectly. Not sure about the newer version
n
graphql-request works like a regular fetch its promised based and you can have variables which you will need for mutations. Apollo is much different it comes with a lot stuff like catching and optimistic ui. In big application these things are good but sometimes you just want fetch data and move on