Currently, we are facing an issue with WebStorm identifying some of our named paths as problematic. Despite this, everything compiles correctly with webpack.
Here is how our project is structured:
apps
app1
tsconfig.e2e.json
src
tests
testsuite1
file.po.ts
libs
lib1
src
index.ts
libs
The content of our lib's index.ts file:
export * from './lib';
In the tsconfig.e2e.json file, these are the paths causing issues:
{
"compilerOptions": {
...
"paths": {
"@a/lib1": ["../../libs/lib1/src"],
}
}
}
WebStorm is flagging the import in file.po.ts as not being found:
import { Mo } from '@a/lib1';
We have already activated TypeScript language service in WebStorm, and other similar imports are working fine. As newcomers to TypeScript and WebStorm, it is possible that we might be overlooking something essential.