Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5113] Unable to build using 'ti build' command using RC SDK 6.1.2

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-07-28T15:59:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterLuke Taylor
AssigneeJohn Goodland
Created2017-07-28T13:39:46.000+0000
Updated2017-07-28T16:02:19.000+0000

Description

When trying to build using the following command ti build, as the it runs through transforming the JS we receive the following error [ERROR] Error transforming JS file [ERROR] : Property key of ObjectProperty expected node to be of a type ["Identifier","StringLiteral","NumericLiteral"] but instead got "BooleanLiteral" [ERROR] Alloy compiler failed

Comments

  1. John Goodland 2017-07-28

  2. Luke Taylor 2017-07-28

    Hi John, seems to be a specific file within our platform that is causing this issue. Commenting out the code from the problematic file allows the build to continue. I will try and narrow down the source of this issue and maybe provide more details around it.
  3. John Goodland 2017-07-28

    Hi Luke, please keep the ticket updated with any further findings so we can continue to help.
  4. Luke Taylor 2017-07-28

    Managed to track down the issue, which seems to be using the OS_IOS constant as a key/value name within a payload. Strange that this hasn't appeared before, as the area of code this affected hasn't changed for a couple years. The build is now progressing past this point, so this ticket can be marked as resolved.
  5. John Goodland 2017-07-28

    Call closed at customer request.
  6. Christopher Williams 2017-07-28

    This is related to our use of babel and re-doing our alloy transforms to work with that. We may be more aggressively replacing OS_* constants than we used to in Alloy, resulting in a transforming your JS object to use true/false as the property key instead of OS_IOS.
  7. John Goodland 2017-07-28

    OS_IOS constant key/value name within payload. Customer reports removing this and all is ok.
  8. Luke Taylor 2017-07-28

    Thanks for a bit more information around this @Christopher Williams This will something to consider during future development.

JSON Source