-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The v3.4.0-beta.15 doesn't work buildless #7895
Comments
@abdonrd Thanks for testing the betas and reporting this issue! This is a consequence of apollographql/invariant-packages#94, and it unfortunately reveals that the Does The reason graphql/graphql-js#2894 is relevant is that @IvanGoncharov mentioned they might stop using |
It would be a welcome improvement for |
@bennypowers No disagreement here—you're preaching to the choir! We are actively looking for a way to stop relying on While I am confident we will find a satisfactory solution within the |
A possible workaround here would be to define if (typeof process === "undefined") {
const processStub = { env: {} };
Object.defineProperty(globalThis, "process", {
get() {
console.log("accessing globalThis.process!");
console.trace();
return processStub;
}
});
} |
@abdonrd I believe this is fixed now (as of Thanks so much for helping test the beta releases, and for your patience while we fixed this. |
Thanks @benjamn! Happy to help! |
👋 hey I'm noticing some breaking changes to TS types: import type { MutationUpdaterFn } from '@apollo/client/core'; became import type { MutationUpdaterFunction } from '@apollo/client/core'; and that last one could arguably be considered internal and non-breaking, but the first one should be aliases before releasing, I think edit: also looks like the type signature for |
Following a suggestion from @bennypowers in this comment: #7895 (comment)
@bennypowers I hear you about Do these seem to be the only visible type changes? Were you able to compare the output of |
Thanks! Yeah, Those were the only ones I found in apollo-elements, which tries its best to expose the full breadth of the core apis @abdonrd shared this screenshot with me, which I'm reposting with permission I reproduced this locally, then after confirming those 8 errors, I published a fix with some workarounds, mostly by reexporting type aliases. apollo-elements/apollo-elements@30a31ea see especially I haven't gone over Thanks :D |
Intended outcome:
Just working, as previous version.
Actual outcome:
I get an error when update from
v3.4.0-beta.14
tov3.4.0-beta.15
:This file is: https://github.com/graphql/graphql-js/blob/v15.2.0/src/jsutils/instanceOf.js#L14
But that file hasn't changed since January 2020.
All works if I go back to
v3.4.0-beta.14
.I'm using the @web/dev-server.
How to reproduce the issue:
Just importing and setup Apollo Client.
Versions
It happens only in
v3.4.0-beta.15
andv3.4.0-beta.16
.All works if I go back to
v3.4.0-beta.14
.Reference: #7399
The text was updated successfully, but these errors were encountered: