在Windows 10 + Android虚拟设备模拟器上使用react-native
。热重新加载已打开,一切正常。
代码编辑和重新加载的循环适用于前几次编辑,经过一些编辑(每次编辑的次数不同),打包程序崩溃并显示以下错误消息:
[Hot Module Replacement] Sending HMR update to client (14:45:24:193)
[Hot Module Replacement] Sending HMR update to client (14:45:24:195)
[Hot Module Replacement] Client connected
[2:45:25 PM] <START> request:/index.android.bundle?platform=android&dev=true&hot=true&minify=false
[2:45:25 PM] <END> request:/index.android.map?platform=android&dev=true&hot=true&minify=false (2660ms)
[2:45:25 PM] <END> request:/index.android.bundle?platform=android&dev=true&hot=true&minify=false (252ms)
[Hot Module Replacement] Client connected
ERROR EPERM: operation not permitted, lstat 'c:\dev\music\index.android.js___jb_old___'
{"errno":-4048,"code":"EPERM","syscall":"lstat","path":"c:\\dev\\music\\index.android.js___jb_old___"}
Error: EPERM: operation not permitted, lstat 'c:\dev\music\index.android.js___jb_old___'
at Error (native)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
Press any key to continue . . .
有关该项目的一些细节:
react-native run android
中的cmd
运行打包程序。答案 0 :(得分:0)
尝试停用“安全写入”(Settings | Appearance & Behavior | System Settings, 'Use "safe write" (save changes to temporary files first)
) - 它有帮助吗?