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

taro 编译第三方库异常 #1030

Closed
SzHeJason opened this issue Nov 7, 2018 · 0 comments
Closed

taro 编译第三方库异常 #1030

SzHeJason opened this issue Nov 7, 2018 · 0 comments
Assignees

Comments

@SzHeJason
Copy link

问题描述
在单独导出一个组件的时候 taro build component 异常

复现步骤

import Taro from "@tarojs/taro"
import AtCalendar from "./components/calendar/index"

export default AtCalendar

期望行为
能支持只编译出一个组件的功能呢个

系统信息

  • 操作系统: MacOS
  • Taro 版本: 1.1.0
  • Node.js 版本 10.0.0
  • 报错平台 h5, weapp

补充信息
目前还未支持单独导出某个组件的功能 ,如果改成下面是可以成功的

import Taro from "@tarojs/taro"

export { default as AtCalendar } from "./components/calendar/index"
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