[TIMOB-24673] Android: Error thrown from require is an empty object
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2018-09-19T15:30:05.000+0000 |
Affected Version/s | Release 6.2.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Ewan Harris |
Assignee | Unknown |
Created | 2017-05-10T11:23:57.000+0000 |
Updated | 2018-09-19T15:30:05.000+0000 |
Description
Description
When performing a try catch on a require, if the module is not found then the error thrown will be an empty object, it should be a string like "Couldn't find module: /foo"Steps to reproduce
Add the below to your app.js
Build for Android
try {
require('/foo')
} catch(e) {
console.log(e)
}
Will be fixed by TIMOB-25899