0

我正在使用 @uppy/core 在我的 react native 应用程序中上传一些图像。当我运行它并在上传时它会抛出这个错误

 ERROR  [Uppy] [15:56:40] undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[21], "nanoid").nanoid')
 LOG  [TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[21], "nanoid").nanoid')]
 
 ERROR  Error: React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.

 

如果我使用 chrome 将它连接到 devtools,这个错误就会消失并且上传工作正常。但这不是解决方案,因为当我导出 APK 时错误仍然存​​在。

4

0 回答 0