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/runtime 没有定义声明文件 #7042

Closed
LaamGinghong opened this issue Jul 14, 2020 · 2 comments
Closed

@tarojs/runtime 没有定义声明文件 #7042

LaamGinghong opened this issue Jul 14, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@LaamGinghong
Copy link

相关平台

微信小程序

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

复现步骤

import { getCurrentInstance } from '@tarojs/runtime'

期望结果

得到具体的类型

实际结果

类型定义并未输出

环境信息

Taro CLI 3.0.2 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.5.0 - ~/.nvm/versions/node/v14.5.0/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.5 - ~/.nvm/versions/node/v14.5.0/bin/npm
    npmPackages:
      @tarojs/components: 3.0.2 => 3.0.2
      @tarojs/mini-runner: 3.0.2 => 3.0.2
      @tarojs/react: 3.0.2 => 3.0.2
      @tarojs/runtime: 3.0.2 => 3.0.2
      @tarojs/taro: 3.0.2 => 3.0.2
      @tarojs/webpack-runner: 3.0.2 => 3.0.2
      babel-preset-taro: 3.0.2 => 3.0.2
      eslint-config-taro: 3.0.2 => 3.0.2
      react: ^16.10.0 => 16.13.1

补充信息

经查看,tarojs/runtime 的package.json 中并未定义 types 字段

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jul 14, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 14, 2020

@LaamGinghong 等 3.0.3 版本,从 @tarojs/taro 中取。

@Chen-jj Chen-jj added the duplicate This issue or pull request already exists label Jul 14, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 14, 2020

duplicate of #6904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants