uport-project / uport-mobile

uPort mobile app
https://uport.me
GNU General Public License v3.0
76 stars 28 forks source link

Invalid regular expression and TypeError: cb.apply is not a function #219

Open kanna998 opened 4 years ago

kanna998 commented 4 years ago
  1. After cloning the project, while run the command "yarn start". Getting the below error, error Invalid regular expression: /(.\fixtures\.|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\tests\.)$/: Unterminated character class. Run CLI with --verbose flag for more details. error Command failed with exit code 1. File: uPort\uport-mobile\node_modules\metro-config\src\defaults\blacklist.js

  2. After correcting the above issue by modifying the regex, run command "yarn start" now we should not get any error Then run command "react-native run-android". Once application start running in android emulator, after some seconds getting the below error

    DELTA [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)C:\Users\\AndroidStudioProjects\uPort\uport-mobile\node_modules\graceful-fs\polyfills.js:285 if (cb) cb.apply(this, arguments) ^

TypeError: cb.apply is not a function at C:\Users\\AndroidStudioProjects\uPort\uport-mobile\node_modules\graceful-fs\polyfills.js:285:20
at FSReqCallback.oncomplete (fs.js:177:5) error Command failed with exit code 1.

To Reproduce Steps to reproduce the behavior:

  1. Clone the Project
  2. Install yarn,react-native cli and all dependencies
  3. yarn
  4. yarn start [Will throw error for Invalid Expression]
  5. react-native run-android
  6. When app loads data from "http://10.0.2.2:8081" will see error msg in terminal [TypeError: cb.apply is not a function]

Expected behavior Should able to run app successfully

Screenshots image

Desktop (please complete the following information): -Windows 10

Smartphone (please complete the following information):

Additional context Tried running app from android studio but build failed due to "DerInputStream.getLength(): lengthTag=109, too big." I request to help me to resolve the issue if my setup was wrong. Or need do some steps to resolve