在Android上运行我的程序时出现问题

时间:2019-06-17 22:32:06

标签: react-native

当我尝试在android仿真器中运行程序时,控制台出现错误,我无法解决

他试图在Google中找到一些信息,但没有找到很多

Error: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Error: jest-haste-map: Haste module naming collision:<br> &nbsp;Duplicate module name: react-native<br> &nbsp;Paths: c:\Users\luis.leyva\Proyectos\AppSysamher\AppSysamher\node_modules\react-native\package.json collides with c:\Users\luis.leyva\Proyectos\AppSysamher\node_modules\react-native\package.json<br><br>This error is caused by `hasteImpl` returning the same name for different files.<br> &nbsp; &nbsp;at setModule (c:\Users\luis.leyva\Proyectos\AppSysamher\node_modules\jest-haste-map\build\index.js:569:17)<br> &nbsp; &nbsp;at workerReply (c:\Users\luis.leyva\Proyectos\AppSysamher\node_modules\jest-haste-map\build\index.js:641:9)<br> &nbsp; &nbsp;at processTicksAndRejections (internal/process/task_queues.js:89:5)<br> &nbsp; &nbsp;at async Promise.all (index 1891)</pre>
</body>
</html>
. La depuración no funcionará: pruebe a recargar JS desde dentro de la aplicación o vuelva a conectar el depurador VS Code: No se pudo importar el script en <http://localhost:8081/index.bundle?platform=android&dev=true&minify=false> (error code 1408)

那是在控制台中出现的错误

我想解决这个问题,以便随着我的应用程序的发展而前进

0 个答案:

没有答案