TownSquareXYZ / tonconnect-ui-vue

TonConnect UI Vue is a Vue UI kit for TonConnect SDK.
Apache License 2.0
21 stars 6 forks source link

can't build project #11

Closed PotapIlya closed 2 months ago

PotapIlya commented 2 months ago

i installed @townsquarelabs/ui-vue in my project (i use "vue": "^3.4.29",) when i installed this package i got some warnings npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: @vue/composition-api@1.7.2 npm WARN Found: vue@2.7.16 npm WARN node_modules/@townsquarelabs/ui-vue/node_modules/vue npm WARN vue@"^2.7.16" from @townsquarelabs/ui-vue@2.0.10-beta.0 npm WARN node_modules/@townsquarelabs/ui-vue npm WARN @townsquarelabs/ui-vue@"*" from the root project npm WARN 1 more (vue-demi) npm WARN npm WARN Could not resolve dependency: npm WARN peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.2 npm WARN node_modules/@townsquarelabs/ui-vue/node_modules/@vue/composition-api npm WARN @vue/composition-api@"^1.7.2" from @townsquarelabs/ui-vue@2.0.10-beta.0 npm WARN node_modules/@townsquarelabs/ui-vue npm WARN 1 more (vue-demi) npm WARN npm WARN Conflicting peer dependency: vue@2.6.14 npm WARN node_modules/vue npm WARN peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.2 npm WARN node_modules/@townsquarelabs/ui-vue/node_modules/@vue/composition-api npm WARN @vue/composition-api@"^1.7.2" from @townsquarelabs/ui-vue@2.0.10-beta.0 npm WARN node_modules/@townsquarelabs/ui-vue npm WARN 1 more (vue-demi) npm WARN deprecated vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.

But when I starting dearting dev project like npm run dev, everything is fine. But when i starting build project (vite build) i get some erros `x Build failed in 14.48s error during build: node_modules/@tonconnect/ui/lib/index.mjs (67:7): "default" is not exported by "node_modules/ua-parser-js/src/ua-parser.js", imported by "node_modules/@tonconnect/ui/lib/index.mjs". file: C:/Users/user/Desktop/frontend/node_modules/@tonconnect/ui/lib/index.mjs:67:7

65: import { TonConnectError, isWalletInfoCurrentlyInjected, toUserFriendlyAddress, CHAIN, TonConnect, isTelegramUrl, enc... 66: export * from "@tonconnect/sdk"; 67: import UAParser from "ua-parser-js"; ^ 68: import deepmerge from "deepmerge"; 69: import cn from "classnames"; `

PotapIlya commented 2 months ago

my error

babel({
  presets: ['@babel/preset-env'],
}),

it's reason my error