An answer to anyone still struggling with this, like I was.
The 'missing import' errors you were expecting come from Typescript and do not show in your Javascript files. But you can add a // @ts-check
at the top of the JS file and the said errors will show.