diff --git a/src/legacy/ui/public/agg_types/agg_type.ts b/src/legacy/ui/public/agg_types/agg_type.ts index 39be1983223bc..607bdddffb11a 100644 --- a/src/legacy/ui/public/agg_types/agg_type.ts +++ b/src/legacy/ui/public/agg_types/agg_type.ts @@ -25,7 +25,7 @@ import { initParams } from './agg_params'; import { AggConfig } from '../vis'; import { AggConfigs } from './agg_configs'; import { ISearchSource } from '../courier'; -import { Adapters } from '../inspector'; +import { Adapters } from '../../../../plugins/inspector/public'; import { BaseParamType } from './param_types/base'; import { AggParamType } from '../agg_types/param_types/agg'; import { KBN_FIELD_TYPES, FieldFormat } from '../../../../plugins/data/public'; diff --git a/x-pack/legacy/plugins/maps/public/plugin.ts b/x-pack/legacy/plugins/maps/public/plugin.ts index 6bc73d0cffee8..0440d9ddc8a06 100644 --- a/x-pack/legacy/plugins/maps/public/plugin.ts +++ b/x-pack/legacy/plugins/maps/public/plugin.ts @@ -11,6 +11,7 @@ import { wrapInI18nContext } from 'ui/i18n'; import { MapListing } from './components/map_listing'; // @ts-ignore import { setLicenseId } from './kibana_services'; +// @ts-ignore import { MapView } from './inspector/views/map_view'; /** @@ -26,7 +27,7 @@ export class MapsPlugin implements Plugin { public setup(core: any, plugins: any) { const { __LEGACY: { uiModules }, - np: { licensing }, + np: { licensing, inspector }, } = plugins; uiModules @@ -39,7 +40,7 @@ export class MapsPlugin implements Plugin { licensing.license$.subscribe(({ uid }: { uid: string }) => setLicenseId(uid)); } - plugins.inspector.registerView(MapView); + inspector.registerView(MapView); } public start(core: CoreStart, plugins: any) {}