I have project angular-cli
~root~/src/typings.json
{
\"globalDevDependencies\": {
\"angular-protractor\": \"registry:dt/angula
I was facing same problem and what I did was, I just removed these
import { } from 'googlemaps';
declare var google: any;
from my component.ts and add "types": [ "googlemaps" ] in my tsconfig.app.json . . Now my tsconfig.app.json looks like this.
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "es2015",
"types": [
"googlemaps"
]
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
And its working perfectly.