因此,由于某种原因,当我尝试在手机中的 Expo Go 应用程序上运行该应用程序时,我遇到了此错误。如果我在网络浏览器上运行显然没问题。
这是错误日志
ReferenceError:找不到变量:TextDecoder
堆栈跟踪:
node_modules\expo\build\environment\react-native-logs.fx.js:27:4 错误
node_modules\react-native\Libraries\Core\ExceptionsManager.js:95:4 in reportException
node_modules\react-native \Libraries\Core\ExceptionsManager.js:141:19 在handleException
node_modules\react-native\Libraries\Core\setUpErrorHandling.js:24:6 在handleError
node_modules@react-native\polyfills\error-guard.js:49:36在 ErrorUtils.reportFatalError
node_modules\metro-runtime\src\polyfills\require.js:203:6 在guardedLoadModule
http://192.168.0.29:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify =false:190345:3 在全局代码中...