react native错误排查-TypeError: window.deltaUrlToBlobUrl is not a function

错误现象:window.deltaUrlToBlobUrl is not a function

最近在调试react-native时,打开浏览器调试时发现报错window.deltaUrlToBlobUrl is not a function,通过搜索查找了一下原因。

参考:https://www.jianshu.com/p/1ead6716e09d

发现是因为http://localhost:8081/debugger-ui/模拟器的远程调试已经打开导致的,为什么会出现这样的情况呢?

当在之前已经打开模拟器的情况下,晚上下班了,电脑直接关机,第二天来开机时其实模拟器窗口还是在开启的状态,因此在再次打开时有可能出现上面的报错信息。

android:command+m/ctrl+m + Stop Remote JS Debugging

ios:command+d + Stop Remote JS Debugging

或者摇一摇手机,点击Stop Remote JS Debugging关闭模拟器远程调试,再次打开模拟器远程调试。

原文地址:https://www.cnblogs.com/sk-3/p/10777730.html

时间: 2024-07-29 14:30:31

react native错误排查-TypeError: window.deltaUrlToBlobUrl is not a function的相关文章

React Native学习-将 'screen', 'window' or a view生成图片

https://github.com/facebook/react-native/commit/ac12f986899d8520527684438f76299675dc0daa 这是react-native自带的生成图片的属性,所以使用之前只需要引用UIManager属性即可: View生成图片: state = { uri: null }; takeToImage() { UIManager.takeSnapshot(this.refs.location, {format: 'png', qu

【React Native错误集】Import fails with "Failed to execute 'ImportScripts' on 'WorkerGlobalScope'"

错误1.Import fails with "Failed to execute 'ImportScripts' on 'WorkerGlobalScope'" 解决1.如果是在Degbug模式下,关闭turn off Debug JS Remotely.再重新运行即可. 错误2:rn报错 unhandled JS Exception: Requiring unknown module "49". if you are sure the module is ther

【React Native错误集】* What went wrong: Execution failed for task ':app:installDebug'.

错误1:* What went wrong: Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_INSUFFICIENT_STORAGE 解决1:内存不足导致,删除模拟器或真机中其他不用的应用程序,释放空间. 错误2:the development

Uncaught TypeError: window.showModalDialog is not a function 谷歌

//新版本谷歌没有window.showModalDialog,创建一个window.openif(window.showModalDialog == undefined){ window.showModalDialog = function(url,mixedVar,features){ window.hasOpenWindow = true; if(mixedVar) var mixedVar = mixedVar; if(features) var features = features.

TypeError: db.addUser is not a function : @(shell):1:1 ——mongoDB创建新用户名密码的方法

不多说,旧版本使用 db.addUser("root","root") 新版本使用这句会出现这个错误提示 TypeError: db.addUser is not a function : @(shell):1:1 新版本用的是 db.createUser(  {    user: "test",    pwd: "test",    roles: [ { role: "userAdmin", db: &q

TypeError: Buffer.alloc is not a function

错误信息:TypeError: Buffer.alloc is not a function 截图如下: 解决办法(依次从上往下执行): sudo npm cache clean -f sudo npm install -g n sudo n 6.4.0 shutdown -h now 主要是参考stackoverflow上面的,感觉这个网站很实用,基本上很多问题都可以找到解决办法. 解决问题链接:https://stackoverflow.com/questions/36499840/type

react native中一次错误排查 Error:Error: Duplicate resources

最近一直在使用react native中,遇到了很多的坑,同时也学习到了一些移动端的开发经验. 今天在做一个打包的测试时,遇到了一个问题,打包过程中报错“Error:Error: Duplicate resources”,什么意思呢,就是打包资源有重复,后来查看了一下,发现打包到android/app/src目录下的静态文件重名了. 重现步骤: 1:通过vscode打开项目,运行打包命令 react-native ram-bundle --entry-file index.js --platfo

window系统下如何在react native安卓开发中用夜神模拟器

直接上步骤: 1.打开夜神安卓模拟器 2.在run-android前先执行"adb connect 127.0.0.1:52001",执行此命令是连接到夜神模拟器(端口默认是52001,如果你的是62001就改成62001,根据实际情况来改) 3.执行下"adb devices"查看下是否有连接设备,没有的话查看下第二步的IP和端口是否正确 4.进入react native的项目根目录下,执行"run-android". 备注:如果出现下面这样的

编译依赖于React Native0.46.4的React Native IOS工程时,出现错误“fatal error: 'React/RCTEventEmitter.h' file not found”

我的环境: WebStorm 2017.2Build #WS-172.3317.70, built on July 14, 2017 JRE: 1.8.0_152-release-915-b5 x86_64JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.12.6 Xcode8.3.3(8E3004b) 网上搜索,可以解决我的问题的网址:https://stackoverflow.com/questions/41663002