Lesson 15: React Moralis Error: "Right-hand side of 'instanceof' is not callable" #1786
-
I'm at 26:45:13 in the course and following along directly with Patrick, but I'm getting an error on my frontend saying "Right-hand side of 'instanceof' is not callable." I'm not sure exactly what this is referring to, it doesn't seem to be caused by the newest additions (adding a Moralis Query to find the active Items) because when I comment out that code the error doesn't go away. Here is my
My
and my
I'm pretty stumped as this code seems to match Patrick's directly... unless I'm missing something. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 42 replies
-
I had the same issue you need to go and downgrade. copy over the JSON from the GITHUB and do a yarn install |
Beta Was this translation helpful? Give feedback.
-
Hey @silaslenihan use these version in your package.json
just delete the node_modules and after replacing your package.json lines with these can do the magic 👍 |
Beta Was this translation helpful? Give feedback.
-
You people can also check this discussion on Moralis platform, the same things I dicussed here and then after solving the issue helping you people here |
Beta Was this translation helpful? Give feedback.
-
For anyone trying the typescript version of Lesson 15 developing on WSL:Ubuntu (Windows 10/11), I ran into a ton of issues getting react-moralis and web3uikit work. I finally found a workaround detailed here: In a nut shell, I had to use And here is the excerpt of my packages.json that finally worked:
Deleted yarn.lock and node_modules folder and tried a fresh install using “npm install”. |
Beta Was this translation helpful? Give feedback.
-
If this method doesn't work for someone, do this
It works pretty fine than the previous method |
Beta Was this translation helpful? Give feedback.
-
These combinations are also running fine
|
Beta Was this translation helpful? Give feedback.
-
👉 👉 Those blockchain developers who are done with the Lesson#15 repo, they can go to this thread #2107 : 🔥🔥🔥🔥🔥🔥 |
Beta Was this translation helpful? Give feedback.
-
This Combination is works for me
and I installed it, while my app is running on the other terminal. |
Beta Was this translation helpful? Give feedback.
Hey @silaslenihan
use these version in your package.json
just delete the node_modules and after replacing your package.json lines with these can do the magic
👍