小编Jor*_*nes的帖子

找不到模块:无法解析“perf_hooks”ReactJS

我正在使用打字稿处理reactjs(17.0.1)(节点v15.11.0),我收到此警告消息,知道如何解决它吗?

./node_modules/typescript/lib/typescript.js
Critical dependency: the request of a dependency is an expression

./node_modules/typescript/lib/typescript.js
Critical dependency: the request of a dependency is an expression

./node_modules/typescript/lib/typescript.js
Module not found: Can't resolve 'perf_hooks' in '/Users/jorge/Documents/Development/Projects/React-Js/project/node_modules/typescript/lib'
Run Code Online (Sandbox Code Playgroud)

提前致谢

node.js typescript

14
推荐指数
1
解决办法
1万
查看次数

redux-persist/getStoredState:恢复密钥数据时出错:xxxxx

redux-persist一直对我来说使用较小的状态树,但尝试在较大的状态树上使用它我在重新启动应用程序时遇到这些错误:

redux-persist/getStoredState:恢复key的数据时出错:pos错误:无法从CursorWindow读取第0行col 0.确保之前正确初始化了Cursor

无法从CursorWindow读取第0行,第0列.在从中访问数据之前,请确保正确初始化Cursor.错误:无法从CursorWindow读取第0行,第0列.在从中访问数据之前,请确保正确初始化Cursor.

我在MainApplication.java中尝试过类似的东西 - onCreate方法:*long size = 50L*1024L*1024L; // 50 MB com.facebook.react.modules.storage.ReactDatabaseSupplier.getInstance(getApplicationContext()).setMaximumSize(size)*

但似乎行不通.

提前致谢

react-native redux asyncstorage

2
推荐指数
1
解决办法
829
查看次数

标签 统计

asyncstorage ×1

node.js ×1

react-native ×1

redux ×1

typescript ×1