You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
customComponentStatistics error: TypeError: Cannot read property 'componentProto' of undefined
【Custom Component Error】can't find pages/index/index, please check your config:
1. Please check if the reference path is correct;
2. If it is a page under this path, the "component: true" in the current page JSON should be removed.
shenghanqin
changed the title
使用taro init 的默认项目,在npm run dev:swan 情况下,修改src/pages/index/index.jsx 任意内容多次后报错
[taro-2.0.0]使用taro init 的默认项目,在npm run dev:swan 情况下,修改src/pages/index/index.jsx 任意内容多次后报错
Jan 12, 2020
问题描述
百度小程序的转译的过程中,多次修改页面组件后,会导致生产出来的 *.json 文件中,多了一个
"component":true
的字段,从而导致百度小程序开发平台把页面当作自定义组件处理最终报错复现步骤
taro init
创建一个测试项目npm run dev:swan
进行百度小程序的开发dist/pages/index/index.json
可以看到内容是:
src/pages/index/index.jsx
render 函数中任意内容,并保存dist/pages/index/index.json
内容为:期望行为
"component":true
不应该在页面组件中出现报错信息
系统信息
补充信息
The text was updated successfully, but these errors were encountered: