敏感词
敏感词
  • 发布:2024-06-17 16:55
  • 更新:2024-06-17 17:01
  • 阅读:73

【报Bug】uni-app vue3项目引用uview-plus启动编译报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 4.19

手机系统: Android

手机系统版本号: Android 14

手机厂商: 华为

手机机型: 华为

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

<style lang="scss">
/ 注意要写在第一行,同时给style标签加入lang="scss"属性 /
@import "uview-plus/index.scss";
</style>

操作步骤:

<style lang="scss">
/ 注意要写在第一行,同时给style标签加入lang="scss"属性 /
@import "uview-plus/index.scss";
</style>

预期结果:

111

实际结果:

111

bug描述:

uni-app vue3项目引用uview-plus启动编译报错

16:50:11.604 项目 'uni-preset-vue-vite-ts' 开始编译...
16:50:12.587 请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。
16:50:12.599 编译器版本:4.07(vue3)
16:50:12.607 正在编译中...
16:50:12.925 uni-app 有新版本发布,请执行 npx @dcloudio/uvm@latest 更新,更新日志详见:https://download1.dcloud.net.cn/hbuilderx/changelog/4.15.2024050802.html
16:50:14.062 ​[plugin:vite:nvue-css] WARNING: cursor is not a standard property name (may not be supported)​
16:50:14.069 ​
16:50:14.074 108| }
16:50:14.081 109| .cursor-pointer {
16:50:14.089 110| cursor: pointer;
16:50:14.096 | ^
16:50:14.107 111| }
16:50:14.110 112| .u-flex,
16:50:14.114 at App.vue:1:0​
16:50:14.121 ​[plugin:vite:nvue-css] WARNING: align-self is not a standard property name (may not be supported)​
16:50:14.125 ​
16:50:14.129 179| }
16:50:14.136 180| .u-flex-self-start {
16:50:14.141 181| align-self: flex-start;
16:50:14.150 | ^
16:50:14.155 182| }
16:50:14.177 183| .u-flex-self-center {
16:50:14.183 at App.vue:1:0​
16:50:14.189 ​[plugin:vite:nvue-css] WARNING: align-self is not a standard property name (may not be supported)​
16:50:14.197 ​
16:50:14.203 182| }
16:50:14.206 183| .u-flex-self-center {
16:50:14.210 184| align-self: center;
16:50:14.220 | ^
16:50:14.226 185| }
16:50:14.235 186| .u-flex-self-end {
16:50:14.238 at App.vue:1:0​
16:50:14.243 ​[plugin:vite:nvue-css] WARNING: align-self is not a standard property name (may not be supported)​
16:50:14.250 ​
16:50:14.253 185| }
16:50:14.256 186| .u-flex-self-end {
16:50:14.268 187| align-self: flex-end;
16:50:14.272 | ^
16:50:14.278 188| }
16:50:14.281 189| .u-flex-self-baseline {
16:50:14.284 at App.vue:1:0​
16:50:14.288 ​[plugin:vite:nvue-css] WARNING: align-self is not a standard property name (may not be supported)​
16:50:14.291 ​
16:50:14.304 188| }
16:50:14.314 189| .u-flex-self-baseline {
16:50:14.320 190| align-self: baseline;
16:50:14.326 | ^
16:50:14.340 191| }
16:50:14.345 192| .u-flex-self-stretch {
16:50:14.349 at App.vue:1:0​
16:50:14.351 ​[plugin:vite:nvue-css] WARNING: align-self is not a standard property name (may not be supported)​
16:50:14.359 ​
16:50:14.371 191| }
16:50:14.375 192| .u-flex-self-stretch {
16:50:14.390 193| align-self: stretch;
16:50:14.398 | ^
16:50:14.403 194| }
16:50:14.409 195| .u-flex-content-start {
16:50:14.412 at App.vue:1:0​
16:50:14.415 ​[plugin:vite:nvue-css] WARNING: align-content is not a standard property name (may not be supported)​
16:50:14.419 ​
16:50:14.422 194| }
16:50:14.425 195| .u-flex-content-start {
16:50:14.428 196| align-content: flex-start;
16:50:14.431 | ^
16:50:14.435 197| }
16:50:14.440 198| .u-flex-content-center {
16:50:14.445 at App.vue:1:0​
16:50:14.449 ​[plugin:vite:nvue-css] WARNING: align-content is not a standard property name (may not be supported)​
16:50:14.458 ​
16:50:14.463 197| }
16:50:14.467 198| .u-flex-content-center {
16:50:14.471 199| align-content: center;
16:50:14.474 | ^
16:50:14.477 200| }
16:50:14.480 201| .u-flex-content-end {
16:50:14.484 at App.vue:1:0​
16:50:14.488 ​[plugin:vite:nvue-css] WARNING: align-content is not a standard property name (may not be supported)​
16:50:14.491 ​
16:50:14.494 200| }
16:50:14.497 201| .u-flex-content-end {
16:50:14.501 202| align-content: flex-end;
16:50:14.506 | ^
16:50:14.511 203| }
16:50:14.516 204| .u-flex-content-between {
16:50:14.520 at App.vue:1:0​
16:50:14.523 ​[plugin:vite:nvue-css] WARNING: align-content is not a standard property name (may not be supported)​
16:50:14.529 ​
16:50:14.537 203| }
16:50:14.552 204| .u-flex-content-between {
16:50:14.557 205| align-content: space-between;
16:50:14.564 | ^
16:50:14.568 206| }
16:50:14.574 207| .u-flex-content-around {
16:50:14.579 at App.vue:1:0​
16:50:14.585 ​[plugin:vite:nvue-css] WARNING: align-content is not a standard property name (may not be supported)​
16:50:14.594 ​
16:50:14.599 206| }
16:50:14.604 207| .u-flex-content-around {
16:50:14.609 208| align-content: space-around;
16:50:14.614 | ^
16:50:14.618 209| }
16:50:14.626 210| .u-flex-middle {
16:50:14.635 at App.vue:1:0​
16:50:14.640 ​[plugin:vite:nvue-css] WARNING: align-self is not a standard property name (may not be supported)​
16:50:14.648 ​
16:50:14.654 211| justify-content: center;
16:50:14.661 212| align-items: center;
16:50:14.672 213| align-self: center;
16:50:14.683 | ^
16:50:14.688 214| align-content: center;
16:50:14.696 215| }
16:50:14.701 at App.vue:1:0​
16:50:14.705 ​[plugin:vite:nvue-css] WARNING: align-content is not a standard property name (may not be supported)​
16:50:14.715 ​
16:50:14.720 212| align-items: center;
16:50:14.735 213| align-self: center;
16:50:14.744 214| align-content: center;
16:50:14.752 | ^
16:50:14.760 215| }
16:50:14.763 216| .u-flex-grow {
16:50:14.766 at App.vue:1:0​
16:50:14.771 ​[plugin:vite:nvue-css] WARNING: flex-grow is not a standard property name (may not be supported)​
16:50:14.777 ​
16:50:14.787 215| }
16:50:14.792 216| .u-flex-grow {
16:50:14.801 217| flex-grow: 1;
16:50:14.808 | ^
16:50:14.817 218| }
16:50:14.825 219| .u-flex-shrink {
16:50:14.834 at App.vue:1:0​
16:50:14.838 ​[plugin:vite:nvue-css] WARNING: flex-shrink is not a standard property name (may not be supported)​
16:50:14.847 ​
16:50:14.851 218| }
16:50:14.854 219| .u-flex-shrink {
16:50:14.857 220| flex-shrink: 1;
16:50:14.860 | ^
16:50:14.864 221| }
16:50:14.874 222| .u-margin-0, .u-m-0 {
16:50:14.878 at App.vue:1:0​
16:50:14.892 项目 'uni-preset-vue-vite-ts' 编译成功。
16:50:14.900 运行方式:打开 HBuilderX, 导入 dist\dev\app-plus 运行。
16:50:14.915 ready in 2169ms.
16:50:14.949 正在建立手机连接...
16:50:14.995 注:检测到当前使用的ADB不是HBuilderX内置或自定义ADB:
16:50:14.995 PID:16548
16:50:14.995 进程名称:adb.exe
16:50:14.995 路径:D:/leidian/LDPlayer9/adb.exe
16:50:14.995 可能存在adb冲突造成真机运行不刷新或不重启等情况,如果正常则忽略
16:50:14.995 如果遇到异常情况,请检查adb冲突
16:50:15.839 手机端调试基座版本号为4.15, 版本号相同,跳过基座更新
16:50:17.196 正在同步手机端程序文件...
16:50:17.708 同步手机端程序文件完成
16:50:19.293 正在启动HBuilder调试基座...
16:50:20.880 应用【uni-preset-vue-vite-ts】已启动

2024-06-17 16:55 负责人:无 分享
已邀请:
敏感词

敏感词 (作者) - 我知道你的敏感词是什么啊

我知道了,是因为使用了.nvue文件的问题。

要回复问题请先登录注册