Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25905] Hyperloop: lib file failed to leave a valid exports object

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2018-03-26T12:32:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsHyperloop
Labelshyperloop
ReporterRene Pot
AssigneeShak Hossain
Created2018-03-26T11:26:12.000+0000
Updated2018-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

Comments

  1. Hans Knöchel 2018-03-26

    This is likely related to using const/let for 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 with var instead of const/let.
  2. Rene Pot 2018-03-26

    Yep! Don't get the errors when using var
  3. Hans Knöchel 2018-03-26

    Handled as part of TIMOB-25057
  4. Eric Merriman 2018-08-06

    Closing as a duplicate. If this is in error, please reopen.

JSON Source