Always Put Your Import Statements At The Start Of Your File.
Published: Wed May 31 2023
Edited: Wed Dec 13 2023
A year of working in NodeJS has more or less tossed my good C#/Java import habits out the window, and I spent 2 hours regretting my life choices because of it. Don't do what I did. Put all of your imports at the top. Why? Because...
What a gibberish error, right? Stuff about type literals or how
expected ( but got yout
. Pft.
That's it. That's all. It's happy now. The compiler gods are happy now. Ugh.