-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Rust compiler: definition of 'XYZQuery' appears to have changed #3437
Comments
What happens is:
The hash used to be I thought we also made that change to the OSS babel plugin, but I guess we never migrated OSS? I need to double check this when I'm back at my work computer. |
Thanks for having a look @kassens, much appreciated! |
Moving comments from the wrong thread: #3438 (comment) from @kassens@mrtnzlml : Actually, I was wrong:
which should match this code relay/packages/babel-plugin-relay/compileGraphQLTag.js Lines 117 to 120 in b87e6b1
Maybe you have an example fragment where the output is different? Is it from @mrtnzlmlHi @kassens! First and foremost, I verified whether this issue still exists in the latest version, and seems like yes. You can see the migration from "old" Relay Compiler to the "new" Relay Rust Compiler in this PR: adeira/universe#2119 Here are all the files I saw that changed their hash from the previous version:
I am having a hard time figuring out what could be the problem though. For example, check query ProductsCardsQuery {
commerce {
products: searchAllProducts(clientLocale: en_US, priceSortDirection: LOW_TO_HIGH) {
id
key
name
imageCover {
blurhash
url
}
price {
unitAmount
unitAmountCurrency
}
}
}
} Doesn't look suspicious. 🤔 Do you have any idea what could it be?
A few exceptions listed above in the whole PR (adeira/universe#2119). Thanks for having a look! |
So it turns out I used this little script to check the way it's printed and hashed (
I suspect the best solution is to pin the graphql dependency of babel-plugin-relay to [email protected]. |
Added a PR for this: #3628 |
Hello @alunyov @kassens my team is finally attempting to upgrade our complier but we are running to the same issue described above. There are no changes to the query definitions, but I still get the warning. Running the compiler properly generates the artifacts and our app functions as expected other than the console error. I am running v16 on all required packages. Our simple configuration looks like:
|
Hello! 👋 I am trying the new Relay Rust compiler and I managed to convert all artifacts successfully. However, I am getting the following errors in runtime:
It works fine with the "old" compiler so I guess there is some kind of incompatibility. Is it a bug? Is there something I am missing? Thanks for having a look!
My config:
Executing like this:
relay-compiler-experimental ./relay.config.json
You can see all the changes in this PR: adeira/universe#2116
The text was updated successfully, but these errors were encountered: