-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
嵌套组件会引起无限编译 #691
Comments
经测试,macOS也会存在相同的情况 |
进一步测试结果为:应用第一次编译的时候会出现,将taskItem中的TaskChildren相关代码禁用之后运行 |
不能这样循环依赖使用,换一种写法吧,一般尽量避免在代码里出现循环依赖 |
这样做的目的是为了实现树形结构,会有多个层级的情况出现,故而采用这种方式编码 |
OJBK,我看下能不能解决~ |
这个问题的解决会导致小程序端报组件找不到,一个页面引入一个组件a,这个组件也会引用一个组件b,那么小程序端会报a找不到组件b。这个问题在1.1.0.beta2以前都没有问题,升级到3以后就有问题了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
写了两个组件:一个TaskItem.js 一个TaskChildren.js,然后内部代码会相互调用,然后
npm run dev:weapp
的时候控制台会持续输出如下信息:TaskItem
TaskChildren
期望行为
未改动文件的情况下不做更多编译
系统信息
The text was updated successfully, but these errors were encountered: