From a64659bb398533eefe7270921c2a400c39cbe624 Mon Sep 17 00:00:00 2001 From: Red-Asuka Date: Tue, 12 Nov 2024 17:31:25 +0800 Subject: [PATCH] fix(build): fix build error --- packages/ui/package.json | 12 ++++++------ packages/ui/src/i18n/index.ts | 10 +++++----- packages/ui/src/vite-env.d.ts | 1 - 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index 86a5131ff..5f5f8fe7b 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -20,12 +20,12 @@ "test:dev": "vitest" }, "peerDependencies": { - "@element-plus/icons-vue": "^2.1.0", - "element-plus": "^2.4.1", - "pinia": "^2.1.7", - "vue": "^3.3.4", - "vue-i18n": "9", - "vue-router": "4" + "@element-plus/icons-vue": "^2.3.1", + "element-plus": "^2.8.7", + "pinia": "^2.2.6", + "vue": "^3.5.12", + "vue-i18n": "^10.0.4", + "vue-router": "^4.4.5" }, "devDependencies": { "@mqttx/core": "workspace:*", diff --git a/packages/ui/src/i18n/index.ts b/packages/ui/src/i18n/index.ts index 8c59618bd..187a97353 100644 --- a/packages/ui/src/i18n/index.ts +++ b/packages/ui/src/i18n/index.ts @@ -1,9 +1,9 @@ import type { Lang } from 'mqttx' -import ElementPlusEN from 'element-plus/dist/locale/en.mjs' -import ElementPlusHU from 'element-plus/dist/locale/hu.mjs' -import ElementPlusJA from 'element-plus/dist/locale/ja.mjs' -import ElementPlusTR from 'element-plus/dist/locale/tr.mjs' -import ElementPlusZH from 'element-plus/dist/locale/zh-cn.mjs' +import ElementPlusEN from 'element-plus/es/locale/lang/en' +import ElementPlusHU from 'element-plus/es/locale/lang/hu' +import ElementPlusJA from 'element-plus/es/locale/lang/ja' +import ElementPlusTR from 'element-plus/es/locale/lang/tr' +import ElementPlusZH from 'element-plus/es/locale/lang/zh-cn' import { createI18n } from 'vue-i18n' export const ElementI18nMap: Record = { diff --git a/packages/ui/src/vite-env.d.ts b/packages/ui/src/vite-env.d.ts index 4fc3e75ac..e69de29bb 100644 --- a/packages/ui/src/vite-env.d.ts +++ b/packages/ui/src/vite-env.d.ts @@ -1 +0,0 @@ -declare module 'element-plus/dist/locale/*.mjs'