React-table 库 - node_modules/react-table/index.js 不导出“useTable”

问题描述

React version: 16.8.6
React-table version: 7.6.3

嘿。
我只有在尝试构建我的项目时才会收到下一个错误。 在本地运行它时,一切正常并且正在导入钩子,但是在尝试构建它时,我得到:
'useTable' is not exported by node_modules/react-table/index.js
看到一些代码示例,我所做的一切都与它们完全相同。试图删除我的 node_modules 并重新安装所有内容 - 但没有奏效。

有什么帮助吗???
谢谢!!

这是我导入组件的方式:

enter image description here

这是我在构建失败后得到的错误

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)