Ошибка TypeScript: не удается найти пространство имен "Google"
У меня есть проект angular-cli
~ Корень ~ / SRC / typings.json
{
"globalDevDependencies": {
"angular-protractor": "registry:dt/angular-protractor#1.5.0+20160425143459",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
"selenium-webdriver": "registry:dt/selenium-webdriver#2.44.0+20160317120654"
},
"globalDependencies": {
"es6-shim": "registry:dt/es6-shim#0.31.2+20160602141504",
"google.maps": "registry:dt/google.maps#3.20.0+20160914131659"
}
}
~ корень ~ / типизации / index.d.ts
/// <reference path="globals/angular-protractor/index.d.ts" />
/// <reference path="globals/es6-shim/index.d.ts" />
/// <reference path="globals/google.maps/index.d.ts" />
/// <reference path="globals/hammerjs/index.d.ts" />
/// <reference path="globals/jasmine/index.d.ts" />
/// <reference path="globals/selenium-webdriver/index.d.ts" />
~ Корень ~ / SRC / tsconfig.json
{
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types",
"../typings"
],
"files": [
"../typings/index.d.ts"
]
}
}
После запусканг служить У меня есть сообщение об ошибке в консоли
ОШИБКА в [по умолчанию] F: ~ root ~ \ src \ app \ ui \ google-map \ map-marker \ map-marker.directive.ts: 7: 26
Не удается найти пространство имен "Google"
а также
ОШИБКА в [по умолчанию] ~ root ~ \ src \ app \ trip-entry-page \ trip-entry-page.component.ts: 188: 21
Не могу найти имя "Google"
~ Корень ~ \ SRC \ приложение \ щ \ Google-карта \ карта габаритный \ карта-marker.directive.ts: 7: 26
...
@Input() veyoMapMarker: google.maps.MarkerOptions
...
~ Корень ~ \ SRC \ приложение \ трип-запись-страница \ трип-въездные-page.component.ts: 188: 21
...
if (status === google.maps.DirectionsStatus.OK) {
...
После сборки приложение работает правильно
Как мне разрешить это сообщение об ошибке?