在开工工具中调试正常,真机调试正常,在预览和体验版小程序中操作提示如下异常信息,并且无法解析\n换行,前者一切正常
MiniProgramError
X(...).bem is not a function
TypeError: X(...).bem is not a function
at (appservice.app.js:312:32276)
at (common.app.js:1:30767)
at (appservice.app.js:312:32042)
at t.handleChildrenCreation (common.app.js:1:30528)
at (common.app.js:1:30938)
at Object.C (appservice.app.js:312:32018)
at (@vant/weapp/popup/index.appservice.js:1:1149)
at t.handleChildrenCreation (common.app.js:1:30528)
at (common.app.js:1:31877)
at C (@vant/weapp/popup/index.appservice.js:1:1058)
找到问题了,是因为使用了 组件框架{'componentFramework':'glass-easel'},去掉以后就可以了
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)