HarmonyOS 鸿蒙Next中__JSBaseNode__未定义

发布于 1周前 作者 htzhanglong 来自 鸿蒙OS

HarmonyOS 鸿蒙Next中__JSBaseNode__未定义

求助,在APP端引用了一个包 @pura/harmony-utils,初始化之后在IDE中的 Previewer中编译报错,在模拟器中正常

报错信息如下:

08-08 10:22:28.076   62700-59764  C03f00/ArkCompiler                                   E     [ArkRuntime Log] ReferenceError: JSBaseNode is not defined

08-08 10:22:28.076   62700-59764  C03f00/ArkCompiler                                   E     [ArkRuntime Log]     at func_main_0 (…/…/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsXNode.js:16:1)

08-08 10:22:28.076   62700-59764  C03f00/ArkCompiler                                   E     [ArkRuntime Log]     at func_main_0 (/mnt/disk/jenkins/ci/workspace/zidane_system_pipeline_release/compile/component_code/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/dialog.js:20:1)

08-08 10:22:28.076   62700-59764  C03f00/ArkCompiler                                   E     [ArkRuntime Log] ReferenceError: JSBaseNode is not defined

08-08 10:22:28.076   62700-59764  C03f00/ArkCompiler                                   E     [ArkRuntime Log]     at func_main_0 (…/…/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsXNode.js:16:1)

08-08 10:22:28.076   62700-59764  C03f00/ArkCompiler                                   E     [ArkRuntime Log]     at func_main_0 (/mnt/disk/jenkins/ci/workspace/zidane_system_pipeline_release/compile/component_code/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/dialog.js:20:1)



关于HarmonyOS 鸿蒙Next中__JSBaseNode__未定义的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。

5 回复
预览器有时是会出现运行报错的问题,还是得用手机试试,以手机的运行为主
楼主后面有解决了不
重新引用,导入一下试试

还是一样的报错,求指导~

回到顶部