I'm using app-module-path npm package and project structure is like below:
- app
- ComponentA
- ComponentB
- index.js
and in ComponentA:
const b = require('app/ComponentB');
but b is not recognised by VS Code intellsense.
any idea?
I added a jsconfig.js at the root of project and it worked!
jsconfig.js
{
"compilerOptions": {
"baseUrl": "./"
}
}