I recently came across a tutorial on Angular 2 Google maps that I was following:
The tutorial included the following import statement:
import { } from 'googlemaps';
However, I encountered a problem where IntelliJ recognized this as an empty import and would delete it every time I reformatted the file. To work around this issue, I had to disable the "optimize import" option globally, which is not ideal as I may want to use it in other files. I tried adding comments to ignore formatting for that specific line of code like so:
//@formatter:off
import { } from 'googlemaps';
//@formatter:on
Unfortunately, even with these comments, IntelliJ continued to remove the import statement upon reformatting. Does anyone have any suggestions on how to resolve this?