Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

[BUG]引入原生递归自定义组件会导致编译卡住 #1490

Closed
jin-yufeng opened this issue Feb 24, 2021 · 0 comments
Closed

[BUG]引入原生递归自定义组件会导致编译卡住 #1490

jin-yufeng opened this issue Feb 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jin-yufeng
Copy link

bug 描述
按照 文档 要求引入原生自定义组件,如果该自定义组件是递归组件(引用自己),会导致编译卡住

复现步骤

  1. 创建一个新项目
  2. 创建一个原生自定义组件,json 文件中引用自身
    {
      "component": true,
      "usingComponents": {
        "test": "./test"
      }
    }
  3. 引用该组件后进行编译
    import Test from '../../components/test/test'

期望结果
正常编译

版本信息:

  • remax 版本: 2.9.1
  • 小程序端: 微信小程序

其他信息
微信截图_20210224143901

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant