Comments (3)
from taro-hooks.
添加以下内容即可:
from taro-hooks.
@innocces 实测,不需要加这一句,只需要有上面那个/// <reference types="@taro-hooks/plugin-react" />
就够了。
我项目之所以失败,是因为d.ts文件放在了types文件夹里,所以在tsconfig.json
里面include进来就好了。
"include": ["src/**/*", "types/*.d.ts"]
from taro-hooks.
Related Issues (20)
- bug: useRequest 未触底 连续执行loadmore HOT 3
- bug: plugin 中使用 @taro-hooks/shared 导致报错 HOT 4
- bug: 2.0版本useRequest类型定义有问题 HOT 3
- 安装taro-hooks后 ts报错“View”不能用作 JSX 组件。 HOT 3
- 官网taro init 的taro hooks模板项目启动报错。 HOT 20
- feat: preact支持 HOT 7
- bug: taro-hooks 的依赖是否遗漏了@taro-hooks/core HOT 5
- bug: error Unable to resolve module @taro-hooks/core from /Users/orrin/Workspaces/项目/sass_crm_rn/node_modules/taro-hooks/lib/useRouter/index.js: @taro-hooks/core could not be found within the project or in these directories: HOT 1
- bug: 微信小程序无法运行 HOT 3
- feat: 支持unplugin-auto-import HOT 5
- bug: 在app.ts里面使用时会报错 HOT 2
- bug: No matching export in "node_modules/@tarojs/taro-h5/dist/index.js" for import "requestSubscribeDeviceMessage" HOT 3
- 为什么next-version-taro-hooks.vercel.app 这个网址最近都无法访问,只能通过vpn访问 HOT 4
- bug: taro-hooks2.0 不支持rn HOT 19
- 使用痛点 建议添加或修改 HOT 5
- bug: AutoImport 引入,在vscode里面看不到函数的方法 HOT 15
- bug: TypeError: 'getOwnPropertyDescriptor' on proxy: trap reported non-configurability for property 'onLaunch' which is either non-existent or configurable in the proxy target HOT 5
- bug: useRequest with options refreshOnWindowFocus init render two times HOT 4
- bug: useSystemInfo 返回空对象 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taro-hooks.