Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeError: Cannot read properties of undefined (reading 'reduceRight') #3144

Closed
3 tasks done
hawkeye64 opened this issue Apr 11, 2023 · 1 comment
Closed
3 tasks done

Comments

@hawkeye64
Copy link

Describe the bug

Using @urql/vue, upgraded to v1.1.0 (dependency update only, no code changes) now gets the aforementioned error.

On this line

var composeExchanges = e => ({client: r, forward: t, dispatchDebug: n}) => e.reduceRight(((e, t) => {

in urql-core.mjs line: 489

I have a feeling @urql/vue v1x does not support the latest @urql/core v4x

Reproduction

https://codesandbox.io/p/sandbox/urql-vue-issue-rlrphn?file=%2Fsrc%2Fmain.js

Urql version

Found "@urql/core@4.0.4"

Validations

  • I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
  • Read the docs.
  • Follow our Code of Conduct
@kitten
Copy link
Member

kitten commented Apr 11, 2023

Not a bug, so I'll convert this into a discussion shortly ✌️

You now have to explicitly pass an array of exchanges: #3114 (comment)

@urql-graphql urql-graphql locked and limited conversation to collaborators Apr 11, 2023
@kitten kitten converted this issue into discussion #3145 Apr 11, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants