diff --git a/src/vector/index.ts b/src/vector/index.ts index b5255d4974..2ac8b461db 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -19,7 +19,6 @@ limitations under the License. */ import { logger } from "matrix-js-sdk/src/logger"; -import { extractErrorMessageFromError } from "matrix-react-sdk/src/components/views/dialogs/ErrorDialog"; // These are things that can run before the skin loads - be careful not to reference the react-sdk though. import { parseQsFromFragment } from "./url_utils"; @@ -120,6 +119,7 @@ async function start(): Promise { showError, showIncompatibleBrowser, _t, + extractErrorMessageFromError, } = await import( /* webpackChunkName: "init" */ /* webpackPreload: true */ diff --git a/src/vector/init.tsx b/src/vector/init.tsx index 9885f567a7..76c238d0e4 100644 --- a/src/vector/init.tsx +++ b/src/vector/init.tsx @@ -143,3 +143,5 @@ export async function loadModules(): Promise { } export { _t } from "../languageHandler"; + +export { extractErrorMessageFromError } from "matrix-react-sdk/src/components/views/dialogs/ErrorDialog";