wepy2 引入weui后,npm run dev 编译出错
发布于 7 年前 作者 dzheng 1789 次浏览 来自 官方Issues

https://developers.weixin.qq.com/miniprogram/dev/extended/weui/quickstart.html

使用wepy引入weui后,npm run dev 编译不通过,错误提示:

[19:34:13] ERR! [LessError: Unrecognised input. Possibly missing opening ‘{’] {

[19:34:13] ERR!   message: “Unrecognised input. Possibly missing opening ‘{’”,

[19:34:13] ERR!   stack: undefined,

[19:34:13] ERR!   type: ‘Parse’,

[19:34:13] ERR!   filename: ‘D:\\proMy\\cxb\\code\\cxb-wechat\\src\\style\\weui\\weui-wxss\\dist\\style\\weui.wxss’,

[19:34:13] ERR!   index: 44528,

[19:34:13] ERR!   line: 6,

[19:34:13] ERR!   column: 44403,

[19:34:13] ERR!   callLine: NaN,

[19:34:13] ERR!   callExtract: undefined,

[19:34:13] ERR!   extract: [

[19:34:13] ERR!     ’ */’,

[19:34:13] ERR!     `page{line-height:1.6;font-family:-apple-system-font,Helvetica Neue,sans-serif}icon{vertical-align:middle}.weui-cells{position:relative;margin-top:8px;background-color:#fff;line-height:1

.41176471;font-size:17px}.weui

[19:34:13] ERR!     undefined

[19:34:13] ERR!   ]

[19:34:13] ERR! }

[19:34:13] ERR! compile Compile failed. Add “–log trace” to see more details

[19:34:13] info watching…

回到顶部