ошибка ENOENT: нет такого файла или каталога, откройте «app / src / main / AndroidManifest.xml» - PullRequest
1 голос
/ 20 июня 2019

Я запускаю программу «Реактив-родной», чтобы использовать код «Реактив-родной», запускаю-android и запускаем npm, но файл ошибки программы AndroidManifest, если есть файл.

ошибка ENOENT: нет такого файла или каталога, откройте «app / src / main / AndroidManifest.xml» package.json

    {
  "name": "react-native-inappbrowser-reborn",
  "version": "2.0.4",
  "description": "InAppBrowser for React Native",
  "main": "index.js",
  "readmeFilename": "README.md",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
    "start": "index.js",
  },
  "typings": "./index.d.ts",
  "repository": {
    "type": "git",
    "url": "git@github.com:proyecto26/react-native-inappbrowser.git"
  },
  "bugs": {
    "url": "https://github.com/proyecto26/react-native-inappbrowser/issues"
  },
  "keywords": [
    "react-native",
    "in",
    "app",
    "browser",
    "inappbrowser",
    "in-app-browser"
  ],
  "author": "Juan David Nicholls Cardona",
  "homepage": "https://github.com/proyecto26/react-native-inappbrowser",
  "license": "MIT",
  "peerDependencies": {
    "react-native": ">=0.55.0"
  },
  "dependencies": {
    "invariant": "^2.2.4",
    "react-native": "^0.59.9"
  },
  "devDependencies": {
    "babel-core": "^6.26.0",
    "flow-bin": "^0.80.0"
  }
}

до данных

This error is caused by `hasteImpl` returning the same name for different files.
    at setModule (F:\react-hr-and-ess\node_modules\metro\node_modules\jest-haste-map\build\index.js:569:17)
    at workerReply (F:\react-hr-and-ess\node_modules\metro\node_modules\jest-haste-map\build\index.js:641:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:16876) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

введите описание изображения здесь введите описание изображения здесь

1 Ответ

0 голосов
/ 20 июня 2019
  1. (в каталоге проекта) mkdir android / app / src / main / assets
  2. Пакет реагировать на изменения --platform android --dev false --entry-file index.js --bundle-output android / app / src / main / assets / index.android.bundle --assets-dest android / приложение / SRC / основные / Рез
  3. Реакция-родной Run-Android

добавить запятую после "test": "echo \"Error: no test specified\" && exit 1",

удалить запятую после "start": "index.js"

 "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "index.js"
  },

Правильный JSON

    {
  "name": "react-native-inappbrowser-reborn",
  "version": "2.0.4",
  "description": "InAppBrowser for React Native",
  "main": "index.js",
  "readmeFilename": "README.md",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "index.js"
  },
  "typings": "./index.d.ts",
  "repository": {
    "type": "git",
    "url": "git@github.com:proyecto26/react-native-inappbrowser.git"
  },
  "bugs": {
    "url": "https://github.com/proyecto26/react-native-inappbrowser/issues"
  },
  "keywords": [
    "react-native",
    "in",
    "app",
    "browser",
    "inappbrowser",
    "in-app-browser"
  ],
  "author": "Juan David Nicholls Cardona",
  "homepage": "https://github.com/proyecto26/react-native-inappbrowser",
  "license": "MIT",
  "peerDependencies": {
    "react-native": ">=0.55.0"
  },
  "dependencies": {
    "invariant": "^2.2.4",
    "react-native": "^0.59.9"
  },
  "devDependencies": {
    "babel-core": "^6.26.0",
    "flow-bin": "^0.80.0"
  }
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...