Skip to content
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

自定义的组件在微信小程序端运行时报错 #1411

Closed
yue00xl opened this issue Mar 13, 2020 · 1 comment
Closed

自定义的组件在微信小程序端运行时报错 #1411

yue00xl opened this issue Mar 13, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@yue00xl
Copy link

yue00xl commented Mar 13, 2020

问题描述
components 中新建的组件, 如果缺少 <script></script>标签, 在微信小程序端运行报错

复现步骤
[复现问题的步骤]

  1. 新建组件, 如果组件中没有<script></script>

2、npm run dev:mp-weixin

3、导入微信开发工具中报错

Component is not found in path "components/uni-demo/uni-demo" (using by "pages/index/index");onAppRoute
Error: Component is not found in path "components/uni-demo/uni-demo" (using by "pages/index/index")

预期结果
正常运行

实际结果
报错

补充信息

@fxy060608 fxy060608 self-assigned this Mar 15, 2020
@fxy060608 fxy060608 added the bug Something isn't working label Mar 15, 2020
fxy060608 added a commit that referenced this issue Mar 15, 2020
@dcloudhdx
Copy link
Contributor

HBuilderX 2.6.6+ 已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants