Uncaught (in promise) ReferenceError: Cannot access 'BasicForm' before initialization这是
When there is a circular reference between components, we can solve it through asynchronous components: defineAsyncComponent,
On the official website of VUE3: https://cn.vuejs.org/guide/components/async.html#basic-usage .
Directly refer to the asynchronous component ( defineAsyncComponent ) provided by the official website , and there are many ways to write it. The following is just one of them.
As originally written:
![](https://img-blog.csdnimg.cn/img_convert/b98044662ed82ffa82fc476b257d72ac.png)
Modified writing:
![](https://img-blog.csdnimg.cn/img_convert/3678ab9317740d09d07aaa2d44ef3759.png)