diff --git a/package.json b/package.json index 6f2e781cbac..6ce77c33875 100644 --- a/package.json +++ b/package.json @@ -285,6 +285,7 @@ "@sentry/types": "6.19.7", "@sentry/utils": "6.19.7", "@types/react-resizable": "3.0.0", + "@types/webpack-env": "^1.17.0", "@visx/event": "2.6.0", "@visx/gradient": "2.10.0", "@visx/group": "2.10.0", diff --git a/public/app/app.ts b/public/app/app.ts index a137ffeaf8d..97be1d1132b 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -80,8 +80,8 @@ import { configureStore } from './store/configureStore'; _.move = arrayMove; // import symlinked extensions -const extensionsIndex = (require as any).context('.', true, /extensions\/index.ts/); -const extensionsExports = extensionsIndex.keys().map((key: any) => { +const extensionsIndex = require.context('.', true, /extensions\/index.ts/); +const extensionsExports = extensionsIndex.keys().map((key) => { return extensionsIndex(key); }); diff --git a/yarn.lock b/yarn.lock index 1aae7fabc27..1426d23281c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11406,6 +11406,13 @@ __metadata: languageName: node linkType: hard +"@types/webpack-env@npm:^1.17.0": + version: 1.17.0 + resolution: "@types/webpack-env@npm:1.17.0" + checksum: 9ad4d208c4429c9427191d1f4c92e4c43e530384c17a6bc298acb89003fc47fcde1d8372e50acefa3061e9100e57fd9d616e96def875afd06c0c2afe508f298e + languageName: node + linkType: hard + "@types/webpack-sources@npm:*": version: 3.2.0 resolution: "@types/webpack-sources@npm:3.2.0" @@ -20828,6 +20835,7 @@ __metadata: "@types/testing-library__react-hooks": ^3.2.0 "@types/tinycolor2": 1.4.3 "@types/uuid": 8.3.4 + "@types/webpack-env": ^1.17.0 "@typescript-eslint/eslint-plugin": 5.28.0 "@typescript-eslint/parser": 5.28.0 "@visx/event": 2.6.0