Angular Usage of ‘~’ in imports is deprecated

In Angular Ionic project if you are getting the following warning

Usage of '~' in imports is deprecated

The solution is to remove all the starting ~ tild in the imports of all your scss files.

Example:

Old:

@import "~@ionic/angular/css/core.css";

Updated one:

@import "@ionic/angular/css/core.css";

The Usage of ‘~’ in imports is deprecated warning will be fixed on next build.