React-Admin installation error: Has no exported member 'CombinedState'
React-Admin installation error: Has no exported member 'CombinedState'
我已经安装了 react-admin
和 npm
,在构建之后,
我收到此错误:
node_modules/redux/index: has no exported member 'CombinedState'. TS2694
并且链接到文件:
declare const _default: import("redux").Reducer<import("redux").CombinedState<{
resources: any;
customQueries: any;
loading: any;
notifications: any;
references: any;
ui: any;
}>, import("redux").AnyAction>;
redux
中没有 CombinedState
,我该如何解决?
This sounds like a troubleshooting issue.
但首先要快速了解 CombinedState
的来源,
我将根据实际文件进行解释。
在 ...\node_modules\redux\index.d.ts [lines 35-56]
中,
你会注意到 CombinedState
实际上是在 redux
中声明的 type
。
而且确实是出口了!
另请注意,react-admin
使用的所有 reducer
功能都在 ra-core
中定义,
react-admin
取决于。
在 ra-core
中,检查文件夹 ...\esm\reducer
和 ...\lib\reducer
,这就是这一行:
import("redux").CombinedState
最常用 - 意味着正在导入 CombinedState
。
可能的解决方案:
- 首先,请确认您的
react-admin
和 redux
安装没有损坏。
您可能没有想到,但我经常不得不重新安装由于这个包裹。
- 检查正在使用的
redux
版本是否与您正在使用的 react-admin
一致。
最好的验证方法是查看 package.json
文件react-admin demo.
既然能用,那肯定没问题吧!?
这些建议基于 react-admin v3.2.1
。
请让我们知道是什么帮助了您。谢谢
我已经安装了 react-admin
和 npm
,在构建之后,
我收到此错误:
node_modules/redux/index: has no exported member 'CombinedState'. TS2694
并且链接到文件:
declare const _default: import("redux").Reducer<import("redux").CombinedState<{
resources: any;
customQueries: any;
loading: any;
notifications: any;
references: any;
ui: any;
}>, import("redux").AnyAction>;
redux
中没有 CombinedState
,我该如何解决?
This sounds like a troubleshooting issue.
但首先要快速了解 CombinedState
的来源,
我将根据实际文件进行解释。
在
...\node_modules\redux\index.d.ts [lines 35-56]
中,
你会注意到CombinedState
实际上是在redux
中声明的type
。
而且确实是出口了!另请注意,
react-admin
使用的所有reducer
功能都在ra-core
中定义,react-admin
取决于。
在 ra-core
中,检查文件夹 ...\esm\reducer
和 ...\lib\reducer
,这就是这一行:
import("redux").CombinedState
最常用 - 意味着正在导入 CombinedState
。
可能的解决方案:
- 首先,请确认您的
react-admin
和redux
安装没有损坏。
您可能没有想到,但我经常不得不重新安装由于这个包裹。 - 检查正在使用的
redux
版本是否与您正在使用的react-admin
一致。
最好的验证方法是查看package.json
文件react-admin demo.
既然能用,那肯定没问题吧!?
这些建议基于 react-admin v3.2.1
。
请让我们知道是什么帮助了您。谢谢