Skip to content
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

next-urql withUrqlClient causing error in v2.1.0 #1101

Closed
mosesintech opened this issue Oct 29, 2020 · 2 comments
Closed

next-urql withUrqlClient causing error in v2.1.0 #1101

mosesintech opened this issue Oct 29, 2020 · 2 comments

Comments

@mosesintech
Copy link

urql version & exchanges:
urql: v1.10.1
next-urql: v2.1.0

Steps to reproduce

  1. Install urql, next-urql, and peer dependancies.
  2. Import withUrqlClient in Next.js page (example: /src/pages/login.js).
  3. Error.

Expected behavior
Expect to be able to use withUrqlClient without issues.

Actual behavior
Import withUrqlClient causes an issue, without even using it.

Failed to Compile:
Screen Shot 2020-10-29 at 9 38 04 AM

Error in Terminal:
Screen Shot 2020-10-29 at 9 41 34 AM

NOTE: There is no issue with next-urql v2.0.0, but only with v2.1.0.

My dependencies:

"dependencies": {
    "bcryptjs": "^2.4.3",
    "connect-session-knex": "^2.0.0",
    "express": "^4.17.1",
    "express-graphql": "^0.11.0",
    "express-session": "^1.17.1",
    "graphql": "^15.3.0",
    "graphql-iso-date": "^3.6.1",
    "js-cookie": "^2.2.1",
    "knex": "^0.21.6",
    "next": "9.5.5",
    "next-urql": "^2.1.0",
    "pg": "^8.4.1",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-is": "^17.0.1",
    "sass": "^1.27.0",
    "urql": "^1.10.1"
  }`
``
@mosesintech mosesintech added the bug 🐛 Oh no! A bug or unintented behaviour. label Oct 29, 2020
@kitten
Copy link
Member

kitten commented Oct 29, 2020

Hiya we've just noticed this issue too. This was related to an invalid build. If you upgrade to [email protected] you'll find that it has been fixed ✌️

@kitten kitten removed the bug 🐛 Oh no! A bug or unintented behaviour. label Oct 29, 2020
@mosesintech
Copy link
Author

Thank you! ^-^

@kitten kitten closed this as completed Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants