微信小程序TS+SASS使用vant导致体验版白屏SystemError (jsEnginScriptError) X(...).bem is not a function
·
微信小程序TS+SASS使用vant导致体验版白屏SystemError (jsEnginScriptError) X(…).bem is not a function
- 目前这个问题vant v1.11.2已经修复了,涉及到的field已经无异常,1.11.1版本的vant有错位的问题
完整报错信息:
SystemError (jsEnginScriptError)
X(...).bem is not a function
TypeError: X(...).bem is not a function
at (appservice.app.js:255:21970)
at (common.app.js:1:30767)
at Object.C (appservice.app.js:255:21761)
at (@vant/weapp/field/index.appservice.js:1:2805)
at t.handleChildrenCreation (common.app.js:1:30528)
at (common.app.js:1:31877)
at (@vant/weapp/field/index.appservice.js:1:2711)
at t.handleChildrenCreation (common.app.js:1:30528)
at (common.app.js:1:30777)
at (@vant/weapp/field/index.appservice.js:1:2269)
这是因为小程序这个框架使用的是skyline导致,删掉下面的部分就可以重新预览发布了

新发现是glass-easel引起,去掉即可
2024/8/30更新:
新建小程序后安装vant weapp后无法引入组件
报错miniprogram/app.json: [“usingComponents”][“van-button”]: “@vant/weapp/button/index”
修改project.config.json文件的packNpmRelationList,复制添加如下代码;重新构建npm后重启项目。即可
"packNpmRelationList": [
{
"packageJsonPath": "./package.json",
"miniprogramNpmDistDir": "./miniprogram/"
}
],
"packNpmManually": true,
更多推荐


所有评论(0)