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/service@3.0.3 typescript 编译报错 node_modules/@tarojs/service/types/index.d.ts:5:61 - error TS2307: Cannot find module '../src/utils/types'. #7058

Closed
shinken008 opened this issue Jul 15, 2020 · 0 comments · Fixed by #7249 or #7257
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@shinken008
Copy link
Collaborator

相关平台

微信小程序

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

复现步骤

引用@tarojs/service包,tsc编译
报错 node_modules/@tarojs/service/types/index.d.ts:5:61 - error TS2307: Cannot find module '../src/utils/types'.

分析:文件和目录问题

期望结果

执行编译不报错

实际结果

编译报错

环境信息

Taro CLI 3.0.2 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.4.0 - /usr/local/bin/node
      Yarn: 1.22.4 - ~/.yarn/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/service: 3.0.3 => 3.0.3
    npmGlobalPackages:
      typescript: 3.6.5 => 3.6.5
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jul 15, 2020
@Chen-jj Chen-jj added this to the 3.0.7 milestone Jul 30, 2020
@Chen-jj Chen-jj linked a pull request Aug 3, 2020 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
2 participants