-
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
[3.9.0] inFlightLinkObservables_1.remove is not a function (it is undefined) in react-native #11543
Comments
I think the problem is with Hermes |
Great find, @efstathiosntonas, and funny timing: I see it was opened yesterday with tracking issues on the Hermes project going back to at least 2021. That does seem possibly relevant, but |
@alessbell you're right 🤦 , should have noticed the file path! |
Thanks for sharing your demo, @efstathiosntonas (moving our thread over here 😊).
I also can't reproduce it in our |
these are the codegen versions: {
"@graphql-codegen/add": "5.0.0",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/fragment-matcher": "5.0.0",
"@graphql-codegen/introspection": "4.0.0",
"@graphql-codegen/jsdoc": "3.0.0",
"@graphql-codegen/typescript": "4.0.1",
"@graphql-codegen/typescript-apollo-client-helpers": "3.0.0",
"@graphql-codegen/typescript-operations": "4.0.1",
"@graphql-codegen/typescript-react-apollo": "4.1.0",
"@graphql-eslint/eslint-plugin": "3.20.1",
} and codegen.yml: schema:
- "http://localhost:9091/v1/graphql":
headers:
x-hasura-admin-secret: myadminsecretkey
# - "directive @connection(key: String, filter: [String]) on FIELD"
watch: true
require:
- ts-node/register
documents: 'src/**/*.graphql'
emitLegacyCommonJSImports: false
config:
scalars:
DateTime: Date
JSON: "{ [key: string]: any }"
timestamptz: string
numeric: number
overwrite: true
generates:
./src/generated/apollo-helpers.ts:
plugins:
- typescript-apollo-client-helpers
./src/generated/graphql.tsx:
schema: schema.json
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
- 'jsdoc'
- add:
content: "/* eslint-disable */"
config:
constEnums: true
#immutableTypes: true
preResolveTypes: true
defaultMapper: any
reactApolloVersion: 3
skipTypename: false
avoidOptionals: true
maybeValue: T
withHooks: true
withComponent: false
withHOC: false
withRefetchFn: true
hooks:
afterOneFileWrite:
- prettier --write
./src/graphql.schema.json:
plugins:
- "introspection"
config:
minify: true
hooks:
afterOneFileWrite:
- prettier --write
./src/generated/fragments.tsx:
plugins:
- fragment-matcher
- add:
content: "/* eslint-disable */"
config:
useExplicitTyping: true
hooks:
afterAllFileWrite:
- prettier --write edit: my eslint throws errors everywhere as you can see on the first comment |
Thanks for that @efstathiosntonas 👍 I'm looking into the eslint errors you're seeing as possibly distinct from the runtime error of On the runtime error, can you please confirm you have the transitive dependency |
ahhhh, I got @wry/trie pinned to 0.4.3 on |
Aha, that would do it! Out of curiosity: do you remember why you pinned that in the first place? Hoping that resolves the eslint errors you're seeing too :) |
@alessbell it works as a charm after bumping eslint errors are gone too! |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
Glad to hear it, @efstathiosntonas! |
@alessbell just an update, eslint errors are not gone, I guess this is codegen issue now. |
@efstathiosntonas would you mind opening a separate issue for that and I'll x-link to your comment above? Will take a look, thanks! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
After upgrading from 3.8.10 on react-native 0.73.3 I get this error:
inFlightLinkObservables_1.remove is not a function (it is undefined)
I created an empty react-native project, transferred over my client setup and I do not get this error in a simple query (without graphql-codegen). I'm using latest @graphql-codegen to create my types/hooks. Cannot figure out why this is throwing so this issue is more like "help me on what might cause that".
This is the place where this throws:
apollo-client/src/core/QueryManager.ts
Line 1139 in 85fb665
when I console log the entry:
concast
console.log:inFlightLinkObservables
console.log:eslint went nuts after the update:
ps. This line should be removed? 🤔
apollo-client/src/core/QueryManager.ts
Line 192 in 85fb665
Link to Reproduction
no-repro
Reproduction Steps
Update from 3.8.10 to 3.9.0 in a react-native project.
@apollo/client
version3.9.0
The text was updated successfully, but these errors were encountered: