taro-hooks
taro-hooks copied to clipboard
bug: taro-hooks@2x 报错TS2307
版本
- taro-hooks:2.2.0
- taro:4.1.1
- node:18.20.0
- npm:10.11.0
- OS: macos 15.5 (24F74)
- Browser: chrome
复现步骤
global.d.ts加
/// <reference types="@taro-hooks/plugin-react" />
import '@taro-hooks/plugin-react';
你期望的现象?
不报错TS2307
现有的现象?
报错TS2307
复现 repo(最好可以提供一个复现的 repo)
任何项目都存在,见taro bug里的说明 global.d.ts 里面 这行(import '@taro-hooks/plugin-react';)删掉就不报错了
welcome discuss in wechat:

@TinsFox seesee
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.