diff --git a/packages/grafana-ui/src/components/Typeahead/Typeahead.tsx b/packages/grafana-ui/src/components/Typeahead/Typeahead.tsx index 3b20190fa3e..5f1f551b7bd 100644 --- a/packages/grafana-ui/src/components/Typeahead/Typeahead.tsx +++ b/packages/grafana-ui/src/components/Typeahead/Typeahead.tsx @@ -35,7 +35,7 @@ export interface State { export class Typeahead extends PureComponent { static contextType = ThemeContext; - context!: React.ContextType; + declare context: React.ContextType; listRef = createRef(); state: State = { diff --git a/public/app/core/monacoEnv.ts b/public/app/core/monacoEnv.ts index a65d707f036..45e6a1ca8d3 100644 --- a/public/app/core/monacoEnv.ts +++ b/public/app/core/monacoEnv.ts @@ -5,8 +5,9 @@ import { monacoLanguageRegistry } from '@grafana/data'; export function setMonacoEnv() { self.MonacoEnvironment = { getWorker(_moduleId, label) { - const getWorkerModule = (moduleUrl, label) => { - return new Worker(self.MonacoEnvironment.getWorkerUrl(moduleUrl), { + const getWorkerModule = (moduleUrl: string, label: string) => { + const workerUrl = self.MonacoEnvironment!.getWorkerUrl!(moduleUrl, label); + return new Worker(workerUrl, { name: label, type: 'module', }); diff --git a/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts b/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts index f10255c0ee5..4e9ee929aad 100644 --- a/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts +++ b/public/app/features/plugins/sandbox/sandbox_plugin_loader.ts @@ -22,6 +22,7 @@ import { logError, logInfo } from './utils'; // Loads near membrane custom formatter for near membrane proxy objects. if (process.env.NODE_ENV !== 'production') { + // @ts-ignore - this is aliased in vite config but ts complains because it cannot resolve it. import('@locker/near-membrane-dom/custom-devtools-formatter'); }