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.js TypeError: Right-hand side of 'instanceof' is not callable #271

Open
3 tasks done
jinsley8 opened this issue Aug 16, 2022 · 0 comments
Open
3 tasks done

Next.js TypeError: Right-hand side of 'instanceof' is not callable #271

jinsley8 opened this issue Aug 16, 2022 · 0 comments

Comments

@jinsley8
Copy link

New Bug Report

Issue Description

Updating to the newest release react-moralis: 1.4.1 along with moralis-v1: 1.11.0 results in a TypeError in Next.js.

Steps + code to reproduce

Create a new Next.js install and make sure the following versions are installed:

"moralis-v1": "1.11.0",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-moralis": "1.4.1"

Actual Outcome

This will cause the following error message:
TypeError: Right-hand side of 'instanceof' is not callable

Expected Outcome

This TypeError is not expected and not reproducable in the previous versions of moralis and react-moralis

Reverting back to this resolves it:

"moralis": "1.11.0",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-moralis": "1.4.0"

Environment

Server

  • Moralis server version: v0.0.383

Client

  • react-moralis version: 1.4.1
  • Moralis SDK version: 1.11.0
  • Operating system: MacOS Monterrey 12.4
  • Browser: Brave - Version 1.40.113 Chromium: 103.0.5060.114 (Official Build) (arm64)
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

1 participant