[TIMOB-25905] Hyperloop: lib file failed to leave a valid exports object
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2018-03-26T12:32:31.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Hyperloop |
| Labels | hyperloop |
| Reporter | Rene Pot |
| Assignee | Shak Hossain |
| Created | 2018-03-26T11:26:12.000+0000 |
| Updated | 2018-08-06T17:41:06.000+0000 |
Description
With the following files: https://gist.github.com/Topener/3a446122e6807732320aed7268395b43
I get the error
[ERROR] : Script Error Couldn't find module: /hyperloop/googlemobileads/gadmobileads for architecture: x86_64
[ERROR] : Script Error Module "titanium-admob/index.js" failed to leave a valid exports object
[ERROR] : ErrorController is up. ABORTING showing of modal controller
Error doesn't occur when using Hyperloop 3.0.3 with TiSDK 7.2.0
This is likely related to using
const/letfor requiring Hyperloop classes, which is because we currently use a regex to detect Hyperloop usages. It is handled as part of TIMOB-25057 and the general ES6+ changes. Please confirm if it works withvarinstead ofconst/let.Yep! Don't get the errors when using
varHandled as part of TIMOB-25057
Closing as a duplicate. If this is in error, please reopen.