Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26241] Hyperloop: iOS - Build error because of duplicate builtins in 3.1.0

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2018-07-27T14:34:33.000+0000
Affected Version/sHyperloop 3.1.0
Fix Version/sHyperloop 3.1.1
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2018-07-27T11:06:21.000+0000
Updated2018-07-27T14:34:33.000+0000

Description

When using Hyperloop 3.1.0, the following build error occurs on the hyperloop-examples app:

/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/util.js:308
			if (isPrimitive(type) || value.indexOf('*') > 0) {
                                  ^
TypeError: Cannot read property 'indexOf' of undefined
    at getResultWrapper (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/util.js:308:35)
    at generatePropGetter (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/util.js:631:16)
    at Object.generateProp (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/util.js:655:18)
    at /Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/class.js:36:16
    at Array.forEach (<anonymous>)
    at makeClass (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/class.js:26:55)
    at Object.generate (/Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/class.js:132:9)
    at /Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/index.js:244:36
    at Array.forEach (<anonymous>)
    at /Users/hknoechel/Documents/Apps/hyperloop-examples/modules/iphone/hyperloop/3.1.0/hooks/generate/index.js:224:29
This does not happen with 3.0.5

Comments

  1. Hans Knöchel 2018-07-27

    The cause was a duplicated entry of the userAgent property that is part of our TiApp builtin. PR (master): https://github.com/appcelerator/hyperloop.next/pull/295 PR (3_1_X): https://github.com/appcelerator/hyperloop.next/pull/296

JSON Source