-
-
Notifications
You must be signed in to change notification settings - Fork 796
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
Cannot access 'typeMap' before initialization #1973
Comments
Hmmm. Below passes for me on master.
|
What version of GraphQL are you using? If you submit a PR with above test, ci will test with latest versions of 14 and 15 |
Curious... not rightly sure, I just did a “yarn install” on everything in a new project and assumed I got the latest of everything. Will have to do some more digging. Thanks for having a look. |
Welp, I'm stumped. I've put the test into the GraphQL Tools repo and am still getting the same result: #1981. See failure in https://github.com/ardatan/graphql-tools/pull/1981/checks?check_run_id=1056293407. |
Not sure why passed for me but looks easy though to correct |
Is there a chance this could be the result of a race condition in schema
definition order? I’m a bit thrown by this one having done it before.
…On Tue, Sep 1, 2020 at 9:20 AM Yaacov Rydzinski ***@***.***> wrote:
Not sure why passed for me but looks easy though to correct
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1973 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFRROGYP45NJ3FA267BYTLSDTYIBANCNFSM4QRHLWAQ>
.
|
I think just should have used acc instead of typemap in that reduce, |
Uh oh, this definitely appears to be a version issue. I just setup a 6.2 upgrade branch and this error appeared... Last night when I tried downgrading to 6.0.18 to smoketest, I'll bet I bumped the packaged down but not the lock file, at which time my 0.18 test was still running a more recent version. |
Should be good to go in #1981, with new test coverage. Thanks for mentioning the fix – that was it! |
There appears to be finickiness with abstract type definitions in a merge. The example below errors with
ReferenceError: Cannot access 'typeMap' before initialization
when the union type is present. Interestingly though, I have a branch in QA right now that successfully implements a similar pattern. That points to one of a few scenarios:I know this works – I'm not sure why it doesn't work here.
Trace:
The text was updated successfully, but these errors were encountered: