SevBuild
SevBuild
  • 发布:2022-04-18 12:11
  • 更新:2022-08-10 09:48
  • 阅读:662

【报Bug】最新版3.4.6.20220416-alpha依然编译报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

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

HBuilderX类型: Alpha

HBuilderX版本号: 3.4.6

手机系统: 全部

手机厂商: 华为

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

测试过的手机:

ios,小米

示例代码:

12:08:20.258 Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
12:08:20.264 Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
12:08:20.771 [plugin:vite:css] /Users/biubiubiubliud/Documents/HBuilderProjects/juzhengyinqing/pages/tabbar/home/page/taskList/taskList.nvue?used&vue&type=style&index=0&inline&lang.css:4:6: Unknown word
12:08:20.776 at pages/tabbar/home/page/taskList/taskList.nvue:1:0
12:08:20.973 [plugin:vite:nvue-css] ERROR: property value transparent !important is not valid for background-color
12:08:20.978 41 | .fui-buttonlink {
12:08:20.979 42 | border-color:transparent !important;
12:08:20.992 43 | background:transparent !important;
12:08:20.992 | ^
12:08:21.009 44 | }
12:08:21.018 45 | .fui-button
primary {
12:08:21.018 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.037 [plugin:vite:nvue-css] ERROR: property value #465CFF !important is not valid for background-color
12:08:21.054 46 |
12:08:21.074 47 | border-color: #465CFF !important;
12:08:21.074 48 | background: #465CFF !important;
12:08:21.086 | ^
12:08:21.104 49 | }
12:08:21.121 50 | .fui-buttonsuccess {
12:08:21.121 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.137 [plugin:vite:nvue-css] ERROR: property value #09BE4F !important is not valid for background-color
12:08:21.137 51 |
12:08:21.154 52 | border-color: #09BE4F !important;
12:08:21.171 53 | background: #09BE4F !important;
12:08:21.172 | ^
12:08:21.187 54 | }
12:08:21.204 55 | .fui-button
warning {
12:08:21.220 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.220 [plugin:vite:nvue-css] ERROR: property value #FFB703 !important is not valid for background-color
12:08:21.237 56 |
12:08:21.254 57 | border-color: #FFB703 !important;
12:08:21.254 58 | background: #FFB703 !important;
12:08:21.270 | ^
12:08:21.271 59 | }
12:08:21.287 60 | .fui-buttondanger {
12:08:21.287 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.304 [plugin:vite:nvue-css] ERROR: property value #FF2B2B !important is not valid for background-color
12:08:21.319 61 |
12:08:21.320 62 | border-color: #FF2B2B !important;
12:08:21.336 63 | background: #FF2B2B !important;
12:08:21.353 | ^
12:08:21.369 64 | }
12:08:21.370 65 | .fui-button
purple {
12:08:21.386 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.403 [plugin:vite:nvue-css] ERROR: property value #6831FF !important is not valid for background-color
12:08:21.419 66 |
12:08:21.419 67 | border-color: #6831FF !important;
12:08:21.436 68 | background: #6831FF !important;
12:08:21.452 | ^
12:08:21.469 69 | }
12:08:21.469 70 | .fui-buttongray {
12:08:21.487 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.502 [plugin:vite:nvue-css] ERROR: property value #F8F8F8 !important is not valid for background-color
12:08:21.519 71 |
12:08:21.520 72 | border-color: #F8F8F8 !important;
12:08:21.536 73 | background : #F8F8F8 !important;
12:08:21.553 | ^
12:08:21.568 74 | }
12:08:21.569 75 | .fui-btn
gray-color {
12:08:21.583 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.600 [plugin:vite:nvue-css] ERROR: property value transparent !important is not valid for background-color
12:08:21.616 91 | .fui-selectis-checkmark {
12:08:21.616 92 | border-width: 0 !important;
12:08:21.622 93 | background: transparent !important;
12:08:21.628 | ^
12:08:21.634 94 | }
12:08:21.635 95 | .fui-select
checkmark {
12:08:21.640 at components/firstui/fui-select/fui-select.vue:1:0

操作步骤:

12:08:20.258 Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
12:08:20.264 Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
12:08:20.771 [plugin:vite:css] /Users/biubiubiubliud/Documents/HBuilderProjects/juzhengyinqing/pages/tabbar/home/page/taskList/taskList.nvue?used&vue&type=style&index=0&inline&lang.css:4:6: Unknown word
12:08:20.776 at pages/tabbar/home/page/taskList/taskList.nvue:1:0
12:08:20.973 [plugin:vite:nvue-css] ERROR: property value transparent !important is not valid for background-color
12:08:20.978 41 | .fui-buttonlink {
12:08:20.979 42 | border-color:transparent !important;
12:08:20.992 43 | background:transparent !important;
12:08:20.992 | ^
12:08:21.009 44 | }
12:08:21.018 45 | .fui-button
primary {
12:08:21.018 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.037 [plugin:vite:nvue-css] ERROR: property value #465CFF !important is not valid for background-color
12:08:21.054 46 |
12:08:21.074 47 | border-color: #465CFF !important;
12:08:21.074 48 | background: #465CFF !important;
12:08:21.086 | ^
12:08:21.104 49 | }
12:08:21.121 50 | .fui-buttonsuccess {
12:08:21.121 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.137 [plugin:vite:nvue-css] ERROR: property value #09BE4F !important is not valid for background-color
12:08:21.137 51 |
12:08:21.154 52 | border-color: #09BE4F !important;
12:08:21.171 53 | background: #09BE4F !important;
12:08:21.172 | ^
12:08:21.187 54 | }
12:08:21.204 55 | .fui-button
warning {
12:08:21.220 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.220 [plugin:vite:nvue-css] ERROR: property value #FFB703 !important is not valid for background-color
12:08:21.237 56 |
12:08:21.254 57 | border-color: #FFB703 !important;
12:08:21.254 58 | background: #FFB703 !important;
12:08:21.270 | ^
12:08:21.271 59 | }
12:08:21.287 60 | .fui-buttondanger {
12:08:21.287 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.304 [plugin:vite:nvue-css] ERROR: property value #FF2B2B !important is not valid for background-color
12:08:21.319 61 |
12:08:21.320 62 | border-color: #FF2B2B !important;
12:08:21.336 63 | background: #FF2B2B !important;
12:08:21.353 | ^
12:08:21.369 64 | }
12:08:21.370 65 | .fui-button
purple {
12:08:21.386 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.403 [plugin:vite:nvue-css] ERROR: property value #6831FF !important is not valid for background-color
12:08:21.419 66 |
12:08:21.419 67 | border-color: #6831FF !important;
12:08:21.436 68 | background: #6831FF !important;
12:08:21.452 | ^
12:08:21.469 69 | }
12:08:21.469 70 | .fui-buttongray {
12:08:21.487 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.502 [plugin:vite:nvue-css] ERROR: property value #F8F8F8 !important is not valid for background-color
12:08:21.519 71 |
12:08:21.520 72 | border-color: #F8F8F8 !important;
12:08:21.536 73 | background : #F8F8F8 !important;
12:08:21.553 | ^
12:08:21.568 74 | }
12:08:21.569 75 | .fui-btn
gray-color {
12:08:21.583 at components/firstui/fui-button/fui-button.vue:1:0
12:08:21.600 [plugin:vite:nvue-css] ERROR: property value transparent !important is not valid for background-color
12:08:21.616 91 | .fui-selectis-checkmark {
12:08:21.616 92 | border-width: 0 !important;
12:08:21.622 93 | background: transparent !important;
12:08:21.628 | ^
12:08:21.634 94 | }
12:08:21.635 95 | .fui-select
checkmark {
12:08:21.640 at components/firstui/fui-select/fui-select.vue:1:0

预期结果:

不报错,能正常编译

实际结果:

报错,无法正常编译,样式丢失

bug描述:

编译报以下错误,从上个版本开始,我本以为这个版本能解决,可是还是依然报错。目前我只能使用非alpna版本了

2022-04-18 12:11 负责人:无 分享
已邀请:
者行孙

者行孙

你确定 nvue 支持 !important?

  • SevBuild (作者)

    支持的 亲~ 3.1.2和之前版本我这样写没有任何问题

    2022-04-19 11:11

一顾倾人诚

一顾倾人诚

2022-8-10 遇到一样的问题 hbuilderX 3.5.3
运行到H5 没问题 运行到APP 会报这个

该问题目前已经被锁定, 无法添加新回复