We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
微信小程序
小程序基础库: 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'.
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
The text was updated successfully, but these errors were encountered:
fix(service): 修复引用 service 包类型报错,fix #7058
9528cea
ffda8a4
Successfully merging a pull request may close this issue.
相关平台
微信小程序
小程序基础库: 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'.
分析:文件和目录问题
期望结果
执行编译不报错
实际结果
编译报错
环境信息
The text was updated successfully, but these errors were encountered: