wepy
wepy copied to clipboard
引入组件,编译时正常,运行时提示找不到组件
wepy/cli 2.0.0-alpha.18 wepy/core 2.0.0-alpha.11
前版本没问题,升级之后出现这个问题。
问题描述
我在某个组件里边引入其他组件时候,编译时正常,运行时提示找不到组件
VM30:1 jsEnginScriptError
Component is not found in path "components/diys/diy-products/~@/components/timer/index" (using by "components/diys/diy-products/index");onAppRoute
Error: Component is not found in path "components/diys/diy-products/~@/components/timer/index" (using by "components/diys/diy-products/index")
// components/diys/diy-products/index
<config>
{
usingComponents: {
"timer": "~@/components/timer/index"
}
}
</config>
timer组件是存在的,而且之前版本正常,然后我随便在
有点头疼,不太确定是什么问题,之前版本还没有出现过这个情况!
切换到wepy/[email protected],一切正常