-
Notifications
You must be signed in to change notification settings - Fork 738
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
x is not member of x in generated files error after using selectionSetInitializers #3112
Comments
Thanks for the bug report! We're going to look into this as soon as we can. Probably will be next week, as we have some people out on vacation this week! |
@iAmericanBoy in order to figure out what's going on here, I am probably going to need a reproduction case. Can you provide me with an example of your schema and operation that causes this bug when generated? It doesn't need to be your entire schema, but if you can pull out just enough of the schema to make something that reproduces this issue, we'll be able to get a fix out much quicker! |
Whoooooops, missed the part that you said this can be reproduced with the example you already sent me last week! Disregard that last comment. We'll look into this! |
yup sorry I only left it as a note bit yes you can reproduce it by setting |
I think we've got another report of this issue in |
Just checking in here, have you been able to reproduce this? I know the other issue is still being investigated but this is blocking us from completing the 1.x migration. Please let me know if I can help in any way? Maybe there's some investigation I could help with? |
I just figured out and got a fix up for the other issue you were having. This one I haven't gotten to yet, but I'm working on it. Hoping to have a resolution for this ASAP. |
Actually, with the other one resolved, I was able to figure out what was wrong here and fix it super quickly! The fix for this is also no in the #3168 PR. Once that is merged in, we will push a patch and this should all be sorted out! So sorry it took so long to make this happen! |
OMG thank you so much for resolving this! I really appreciate that you took the time to find it and where able to fix it thank you! |
Summary
After adding the
selectionSetInitializers:
option to ourOutputOptions
function the generated code is not building anymore. it looks like apollo is maybe duplicating the asUserPie inline fragment?Type 'ApolloSimpleSliceable.AsPie.AsUserPie' has no member 'AsUserPie' is the error we are getting in Xcode.
the part of the query that is generated by this looks like this:
Version
1.3
Steps to reproduce the behavior
add selectionSetInitializers selection set to the options initializer and run
ApolloCodegen.build
the generated code now has failures in it being unable to resolve the inline fragmentLogs
No response
Anything else?
this can be reproduced with the same schema and fragment files I send @AnthonyMDev last week
The text was updated successfully, but these errors were encountered: