As you can see I get the following error: 'User' was used before it was defined no-use-before-define
on line 127:
However, I import it on line 2:
I just use it as usual on line 127:
What am I missing here?
Rename your variable from User to user. I suspect that it is confused that you have both a variable and an object you are trying to create using the same name. You could alternatively change the namespace import to something other than User.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With