Skip to content

[RN0.61.4] Cannot find module '../../lib/mappings.json' #1454

@usmansbk

Description

@usmansbk

React Native version:

System:
    OS: Linux 5.0 Ubuntu 18.04.3 LTS (Bionic Beaver)
    CPU: (4) x64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
    Memory: 485.62 MB / 7.68 GB
    Shell: 4.4.20 - /bin/bash
  Binaries:
    Node: 10.17.0 - /usr/bin/node
    Yarn: 1.19.1 - /usr/bin/yarn
    npm: 6.11.3 - /usr/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    Android SDK:
      API Levels: 28, 29
      Build Tools: 28.0.3, 29.0.2
  npmPackages:
    react: ^16.11.0 => 16.11.0 
    react-native: ^0.61.4 => 0.61.4 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Steps To Reproduce

react-native run-android --variant release

Describe what you expected to happen:
Should successfully build app but i get Cannot find module '../../lib/mappings.json'

  "react-native-paper": "^3.2.0",
  "devDependencies": {
    "@babel/core": "^7.7.0",
    "@babel/plugin-proposal-decorators": "^7.7.0",
    "@babel/runtime": "^7.7.1",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-jest": "^24.9.0",
    "babel-plugin-module-resolver": "^3.2.0",
    "babel-plugin-transform-remove-console": "^6.9.4",
    "eslint": "^6.6.0",
    "jest": "^24.9.0",
    "metro-react-native-babel-preset": "^0.57.0",
    "react-test-renderer": "^16.11.0"
  },

I've tried deleting node_modules and yarn.lock file

react-native run-android works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions