<template>
</template>
<script>
import aa from './aa'
export default {
name: 'aa',
components: {
aa
}
}
</script>
<style>
</style>
- 发布:2021-09-05 16:25
- 更新:2021-09-05 16:25
- 阅读:698
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 20H2
HBuilderX类型: Alpha
HBuilderX版本号: 3.2.6
手机系统: Android
手机系统版本号: Android 9.0
手机厂商: 华为
手机机型: Mate 30E Pro
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
vue3 项目新建一个递归组件,在页面中引入,运行到 app
vue3 项目新建一个递归组件,在页面中引入,运行到 app
预期结果:
正常运行
正常运行
实际结果:
报错 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught ReferenceError: Cannot access '_sfc_main$2' before initialization
报错 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught ReferenceError: Cannot access '_sfc_main$2' before initialization
bug描述:
vue3 项目,递归组件运行到 app 会报错
0 个回复