So I'm getting started on a project using the react template for a .NET Core MVC WebApp and I'm having some trouble with absolute imports. As far as I understand it, I can set baseUrl in my .tsconfig and that should be the end of it. While this works like a charm in VS Code I cannot seem to get it working in VS 2019.
Here is my basic file/folder structure:
--src
--Context
Context.ts
--App
App.tsx
When I try import * as Context from 'Context/Context' from App.tsx:
VS2019 gives me the following error:
(TS) Cannot find module

However, when I open up the same project/files in VS Code it works as expected.

Could someone please explain to me how I can get the behaviour of VS Code in VS2019 and/or why VS2019 doesn't work the way I'm expecting it to?