taro-hooks icon indicating copy to clipboard operation
taro-hooks copied to clipboard

bug: taro-hooks@2x 报错TS2307

Open liangskyli opened this issue 7 months ago • 2 comments

版本

  • 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';)删掉就不报错了

liangskyli avatar Jun 01 '25 14:06 liangskyli

welcome discuss in wechat:

github-actions[bot] avatar Jun 01 '25 14:06 github-actions[bot]

@TinsFox seesee

innocces avatar Jun 06 '25 02:06 innocces

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.

stale[bot] avatar Aug 05 '25 02:08 stale[bot]