#cannot read properties of undefined (reading 'upsert')

24 messages · Page 1 of 1 (latest)

hidden solstice

Hi! I'm getting this error.

This is the code.

worn cedarBOT
  • 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!
hidden solstice
upper hemlock

CurrencyShop is undefined

hidden solstice

resolve*

upper hemlock

show models/currencyShop.js

hidden solstice
sterile scarab

So that returns the scheme, destructuring CurrencyShop from that won‘t work

Did you want to name it CurrencyShop without destructuring instead?

hidden solstice

@sterile scarab

sterile scarab
hidden solstice <@415588601120686091>

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

hidden solstice

what should I do?

to fix that error?

sterile scarab
hidden solstice

I don't understand.

I didn't destructure the file.

fresh needle
verbal steppe

do CurrencyShop directly

the fode exports CurrencyShop defaultly

hidden solstice