I've got an Ionic v4 project that is running fine, but PhpStorm cannot find my references to @ionic.
It looks like the code is actually in the /dist directory, so if I change the reference to:
import { NavController } from '@ionic/angular/dist'
PhpStorm doesn't complain and I get code completion features for @ionic/angular.
However, when running ng serve the project won't compile and I get errors in the console:
ERROR in ./src/app/pages/home/home.component.ts
Module not found: Error: Can't resolve '@ionic/angular/dist'
How can I fix this?
Why does project compile when not specifying /dist?
Edit:
In PhpStorm, the entire node_modules directory is excluded, but not specifically the @ionic/angular. Note, references to other modules are working fine.
Edit 2: Here's how the folder coloring shows up:
@ionic/angulardoesn't work@ionic-native/coreworks@angular/coreworks



node_modules/@ionic/angular/distfolder is not marked excluded - lenanode_modules/@ionic/angular/distfolder in the Project tool window - lena