Skip to content

【uni-app】-【4.0.0】VueCli创建的uni-app项目uts插件构建app报错 #478

@Yee1014

Description

@Yee1014

VueCli 创建的uni-app项目,使用uts插件构建 app 报错,各种警告信息

如题

1 创建项目

https://gitee.com/dcloud/uni-preset-vue/repository/archive/vite-ts.zip
下载vue-ts模板项目,可直接查看复现项目压缩包!

pnpm i

2 添加相关包(uts插件)

  1. TencentCloud-Call
  2. TencentCloud-Push
  3. 编写相关代码

3 构建打包

uni dev -p app-plus

错误信息如下

pnpm dev:app  

> uni-preset-vue@0.0.0 dev:app /Users/yee/WorkSpace/GitProjects/uni-ts-tui-kit-call
> uni -p app-plus

请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。
编译器版本:5.06(vue3)
正在编译中...
​[plugin:vite:nvue-css] WARNING: `min-width` is not a standard property name (may not be supported)​
​
18 |      left: 0;
19 |      right: 0;
20 |      min-width: 100vw;
   |       ^
21 |  }
22 |  
at uni_modules/TencentCloud-Call/callkit/callPage.nvue:1:0​
​[@vue/compiler-sfc] `defineProps` is a compiler macro and no longer needs to be imported.
​
✘ [ERROR] No matching export in "dist/dev/.nvue/uni_modules/TencentCloud-Call/callkit/callPage.js" for import "default"

    <stdin>:1:7:
      1 │ import App from './uni_modules/TencentCloud-Call/callkit/callPage.js'
        ╵        ~~~

[plugin:uni:app-nvue-esbuild] Build failed with 1 error:
<stdin>:1:7: ERROR: No matching export in "dist/dev/.nvue/uni_modules/TencentCloud-Call/callkit/callPage.js" for import "default"


复现项目

uni-ts-tui-kit-call.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions