13:13:11.655 项目 'pad' 开始编译...
13:13:13.549 编译器版本:2.6.16(v3)详见:https://ask.dcloud.net.cn/article/36599。
13:13:13.549 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
13:13:13.550 正在编译中...
13:13:26.336 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js):
13:13:26.337 (Emitted value instead of an instance of Error) Error: undefined:1487:1: selector missing
13:13:34.253 DONE Build complete. Watching for changes...
13:13:34.286 项目 'pad' 编译成功。
13:13:34.292 ERROR Build failed with errors.
13:13:34.486 正在建立手机连接...
13:13:35.688 手机端调试基座版本号为2.6.16,版本号相同,跳过基座更新
13:13:35.832 正在同步手机端程序文件...
13:13:37.325 同步手机端程序文件完成
13:13:38.006 正在启动HBuilder调试基座...
13:13:39.749 应用【电子处方】已启动...
- 发布:2020-05-13 13:17
- 更新:2020-09-10 15:51
- 阅读:1232
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window10
HBuilderX类型: 正式
HBuilderX版本号: 2.6.16
手机系统: Android
手机系统版本号: Android 9.0
手机厂商: 华为
手机机型: p20
页面类型: nvue
打包方式: 云端
项目创建方式: HBuilderX
App下载地址或H5⽹址: appId:__UNI__E03E067
示例代码:
操作步骤:
运行就出错,但是本地能运行,云端不能打包
运行就出错,但是本地能运行,云端不能打包
预期结果:
云端能打包
云端能打包
实际结果:
[HBuilder] 13:15:11.431 编译器版本:2.6.16(v3)详见:https://ask.dcloud.net.cn/article/36599。
[HBuilder] 13:15:11.433 正在编译中...
[HBuilder] 13:15:29.725 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js):
[HBuilder] 13:15:29.725 (Emitted value instead of an instance of Error) Error: undefined:1487:1: selector missing
[HBuilder] 13:15:38.121 DONE Build complete.
[HBuilder] 13:15:38.122 项目 'pad' 编译成功。
[HBuilder] 13:15:38.125 ERROR Build failed with errors.
[HBuilder] 13:15:41.985 项目 'pad' 开始编译...
[HBuilder] 13:15:43.773 编译器版本:2.6.16(v3)详见:https://ask.dcloud.net.cn/article/36599。
[HBuilder] 13:15:43.777 正在编译中...
[HBuilder] 13:16:02.068 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js):
[HBuilder] 13:16:02.068 (Emitted value instead of an instance of Error) Error: undefined:1487:1: selector missing
[HBuilder] 13:16:10.580 DONE Build complete.
[HBuilder] 13:16:10.580 项目 'pad' 编译成功。
[HBuilder] 13:16:10.585 ERROR Build failed with errors.
云端不能打包
[HBuilder] 13:15:11.431 编译器版本:2.6.16(v3)详见:https://ask.dcloud.net.cn/article/36599。
[HBuilder] 13:15:11.433 正在编译中...
[HBuilder] 13:15:29.725 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js):
[HBuilder] 13:15:29.725 (Emitted value instead of an instance of Error) Error: undefined:1487:1: selector missing
[HBuilder] 13:15:38.121 DONE Build complete.
[HBuilder] 13:15:38.122 项目 'pad' 编译成功。
[HBuilder] 13:15:38.125 ERROR Build failed with errors.
[HBuilder] 13:15:41.985 项目 'pad' 开始编译...
[HBuilder] 13:15:43.773 编译器版本:2.6.16(v3)详见:https://ask.dcloud.net.cn/article/36599。
[HBuilder] 13:15:43.777 正在编译中...
[HBuilder] 13:16:02.068 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js):
[HBuilder] 13:16:02.068 (Emitted value instead of an instance of Error) Error: undefined:1487:1: selector missing
[HBuilder] 13:16:10.580 DONE Build complete.
[HBuilder] 13:16:10.580 项目 'pad' 编译成功。
[HBuilder] 13:16:10.585 ERROR Build failed with errors.
云端不能打包
bug描述:
Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js):
[HBuilder] 13:10:17.078 (Emitted value instead of an instance of Error) Error: undefined:1487:1: selector missing
天上飞的鱼 - 联系加微信13316330473
楼主怎么解决这个问题的,求解答 ........ 我也遇到同样的问题,模拟器运行时就报错,打包也报错,但是模拟器可以正常显示无障碍
-
二福 (作者)
我是样式问题 / #ifndef APP-PLUS-NVUE /
@import './common/css/uni.css';
@import './common/css/common.css';
@import './common/css/rootColor.css';
/ 以下样式用于 hello uni-app 演示所需 /
page {
height: 100%;
}
/ #endif/2020-06-29 16:48
01:31:55.827 Module Error (from ./nodemodules/@dcloudio_vue-cli-plugin-hbuilderx@2.0.0-27920200618002@@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js):
01:31:55.827 (Emitted value instead of an instance of Error) Error: undefined:524:3: property missing ':',Error: undefined:524:3: missing '}'
01:32:16.707 WARNING: Module Warning (from ./node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js):
01:32:16.707 Warning
我也遇到类似的问题,求解答!!!
说下嘛
我想问下官方,我只要新建一个空白nvue页面就报错:
18:07:02.970 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/style.js):
18:07:02.970 (Emitted value instead of an instance of Error) Error: undefined:3731:2: missing '}'
这个不正常啊
2020-06-29 18:08