#cannot read properties of undefined (reading 'upsert')
24 messages · Page 1 of 1 (latest)
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
CurrencyShop is undefined
show models/currencyShop.js
So that returns the scheme, destructuring CurrencyShop from that won‘t work
Did you want to name it CurrencyShop without destructuring instead?
yes
@sterile scarab
What did you ping me for? I read your „yes“. Which sounds to me like you understood where you went wrong and how to fix it. So if you got more questions you probably should ask those
what should I do?
to fix that error?
👆don’t destructure
I don't understand.
I didn't destructure the file.
you might want to read up on what destructuring is https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
dont do const { CurrencyShop}
do CurrencyShop directly
the fode exports CurrencyShop defaultly
I don't get it.
Did you read this yet?