Complete error
jsEnginScriptError:
Component is not found in path "components/comp/comp.js" (using by pages/index/index); onAppRoute
Error: Component is not found in path "components/comp/comp.js" (using by pages/index/index)
in e(...)
...
Error code (json)
{
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeApp",
"navigationBarTextStyle": "black",
"usingComponents": {
"MyComp": "../../components/comp/comp.js"
}
}
solve
Remove it .js
and replace it with ../../components/comp/comp
:
{
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeApp",
"navigationBarTextStyle": "black",
"usingComponents": {
"MyComp": "../../components/comp/comp"
}