wepy icon indicating copy to clipboard operation
wepy copied to clipboard

引入组件,编译时正常,运行时提示找不到组件

Open zhuman90 opened this issue 5 years ago • 2 comments

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组件是存在的,而且之前版本正常,然后我随便在中把双引号换成单引号,又正常了,但是当我下次重新编译后又提示找不到。 然后我发现编译后的json,组件路径并没有被编译。可以看下图:

image

有点头疼,不太确定是什么问题,之前版本还没有出现过这个情况!

zhuman90 avatar Aug 28 '19 03:08 zhuman90

切换到wepy/[email protected],一切正常

zhuman90 avatar Aug 30 '19 01:08 zhuman90

切换到wepy/[email protected],一切正常

兄弟,你这名字和简介也太骚了吧哈哈哈哈

aoxiang594 avatar Aug 11 '20 07:08 aoxiang594