Hi,
This might be a dumb question, and I apologise if it is. It’s late and I’m tired and hoping there might be an answer in the morning
I’m updating an app from beta 11 to 2.0.0. I started a new project, then copied all my source files over into src.
Some of my paths have changed now (I was tidying up as part of the move), so I need to go through and update all the “import” statements to point to the new relative paths.
I’m using VS Code.
Now here is my possibly dumb question:
I think I used to get errors if the path was wrong and VS Code would underline it red. “Cannot find module ‘./my/wrong/path’” or something like that.
But in this new ionic project I don’t get those errors. It seems to have just assumed it as “any”, which sometimes causes compiler errors (eg. using it to declare the type of a method parameter), but other than that it just ignores it.
How can I get it to tell me the path is wrong?, it’s going to drive me nuts!
tl:dr;
import { MyClass } from './invalid/path';
This is not giving me an error, it is just assuming MyClass as any
How can I get it like it used to be?
Thank you