reactjs - 在使用 typescript 的 react-native 应用程序上遇到一些奇怪的问题
问题描述
重新安装软件包后,我突然遇到以下问题,该应用程序运行正常,但它给了我以下打字稿错误,我发现我的 redux 版本从 4.0.4 更改为 4.0.5,我恢复了但仍然出现错误
Argument of type 'StoreEnhancer<{ dispatch: {}; }, {}>' is not assignable to parameter of type 'StoreEnhancer<{}, {}>'.
Types of parameters 'next' and 'next' are incompatible.
Types of parameters 'preloadedState' and 'preloadedState' are incompatible.
Type 'DeepPartial<S> | undefined' is not assignable to type 'PreloadedState<S> | undefined'.
Type 'DeepPartial<S>' is not assignable to type 'PreloadedState<S>'.
composeEnhancers(applyMiddleware(epicMiddleware, reduxLogger))
解决方案
我从我的应用程序中删除了 react-native-elements 并且没有再次收到错误,不确定,但似乎该库有很多问题,它不是一个稳定的。
推荐阅读
- mapbox - 如何从 Mapbox 获取高程剖面数据?
- javascript - HTML/Javascript - checkValidity() 不显示需要的位置
- c# - 使用自定义配置扩展 OnModelCreating
- javascript - 如何在 Ajax Jquery 方法中使用 setTimeout() 防止关闭模式?
- xamarin.forms - 连续按钮点击传递到下一个按钮,如何防止
- javascript - 从函数的内部范围返回值
- python - 在循环中销毁 tkinter 接口?
- mysql - 尝试创建外键时在 MySQL 中出现错误 1822
- linux - How to send a compiled file to sama5d27 board and execute it?
- excel - VBA 相当于在文本框或形状内按“制表符”?