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

导出的组件名不正确? #5241

Closed
raohong opened this issue Jan 4, 2020 · 3 comments
Closed

导出的组件名不正确? #5241

raohong opened this issue Jan 4, 2020 · 3 comments
Assignees

Comments

@raohong
Copy link

raohong commented Jan 4, 2020

问题描述

编译 组件文件 src/pages/index/VirtualItem.tsx
错误 组件错误 组件VirtualItem路径错误,请检查!(可能原因是导出的组件名不正确)
错误 页面编译 页面E:\taro-bug\src\pages\index\index编译失败!
昨天晚上还行, 今天就出现这个错误了

复现

git clone https://github.com/raohong/taro-bug.git

期望行为

正确使用

报错信息

编译  组件文件  src/pages/index/VirtualItem.tsx
错误  组件错误  组件VirtualItem路径错误,请检查!(可能原因是导出的组件名不正确)
错误  页面编译  页面E:\taro-bug\src\pages\index\index编译失败!
TypeError [ERR_INVALID_ARG_TYPE]: The "to" argument must be of type string. Received type object``

系统信息

� Taro v1.3.25


  Taro CLI 1.3.25 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.10.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.10.3 - C:\Program Files\nodejs\npm.CMD
@taro-bot
Copy link

taro-bot bot commented Jan 4, 2020

CC @luckyadam

@taro-bot
Copy link

taro-bot bot commented Jan 4, 2020

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@raohong
Copy link
Author

raohong commented Jan 4, 2020

必须传入被 JSX 包裹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants