Error: You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a BlockStatement node without passing scope and parentPath.
node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:328:78
if (body && body.length && funcParams && funcParams.length === 1 && !hasMemberExpression(funcPath) && isSafeScoped(state)) {
const exprStatements = body.filter(node => {
return t.isExpressionStatement(node) && t.isCallExpression(node.expression) && !node.expression.arguments.find(element => {
// click1(item().a)
if (t.isMemberExpression(element)) {
try {
getIdentifierName(element)
} catch {
return true
}
}
})
})
node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:40:5
processes.forEach(process => {
process(paths, path, state, isComponent, tagName).forEach((property) => {
addAttrProperties.push(property)
})
})
- 发布:2023-08-02 10:11
- 更新:2023-11-24 11:26
- 阅读:428
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX类型: 正式
HBuilderX版本号: 3.8.7
第三方开发者工具版本号: 1.06.2307250
基础库版本号: 2.32.3
项目创建方式: HBuilderX
示例代码:
操作步骤:
运行已上线的小程序
运行已上线的小程序
预期结果:
正常运行
正常运行
实际结果:
node_modules报错
node_modules报错
bug描述:
3.8.7版本运行小程序报错
1 个回复
i***@langlang.net.cn - uniapp
一样的问题,安卓 ios 本地可以运行。小程序无法运行,官方也一直没回复