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

@tarojs/components 包缺少导出 InputProps #9609

Closed
hdsuperman opened this issue Jun 28, 2021 · 1 comment
Closed

@tarojs/components 包缺少导出 InputProps #9609

hdsuperman opened this issue Jun 28, 2021 · 1 comment
Assignees
Labels
A-typings Area - TypeScript Typings 相关 F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@hdsuperman
Copy link

相关平台

微信小程序

小程序基础库: 2.15.0
使用框架: React

复现步骤

import { FC } from 'react';
import { Input, InputProps } from "@tarojs/components";

const Index: FC<InputProps> = (props) => {
  return (
    <Input
      {...props}
    />
  );
};

export default Index;

IDE 提示报错:

Module: ... has no exported member 'InputProps'

期望结果

期望导出 InputProps 方便自定义组件时使用

实际结果

没有导出声明可用

环境信息

  Taro CLI 3.2.13 environment info:
    System:
      OS: macOS 11.4
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 15.4.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 7.6.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.2.13 => 3.2.13 
      @tarojs/mini-runner: 3.2.13 => 3.2.13 
      @tarojs/react: 3.2.13 => 3.2.13 
      @tarojs/runtime: 3.2.13 => 3.2.13 
      @tarojs/taro: 3.2.13 => 3.2.13 
      @tarojs/webpack-runner: 3.2.13 => 3.2.13 
      babel-preset-taro: 3.2.13 => 3.2.13 
      eslint-config-taro: 3.2.13 => 3.2.13 
      react: ^17.0.0 => 17.0.2 

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jun 28, 2021
@Chen-jj Chen-jj added the A-typings Area - TypeScript Typings 相关 label Jul 8, 2021
@ZakaryCode
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typings Area - TypeScript Typings 相关 F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants