[AC-5113] Unable to build using 'ti build' command using RC SDK 6.1.2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-07-28T15:59:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Luke Taylor |
Assignee | John Goodland |
Created | 2017-07-28T13:39:46.000+0000 |
Updated | 2017-07-28T16:02:19.000+0000 |
Description
When trying to build using the following command : Property key of ObjectProperty expected node to be of a type ["Identifier","StringLiteral","NumericLiteral"] but instead got "BooleanLiteral"
[ERROR] Alloy compiler failed
ti build
, as the it runs through transforming the JS we receive the following error
[ERROR] Error transforming JS file
[ERROR]
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.
Hi Luke, please keep the ticket updated with any further findings so we can continue to help.
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.Call closed at customer request.
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.
OS_IOS constant key/value name within payload. Customer reports removing this and all is ok.
Thanks for a bit more information around this @Christopher Williams This will something to consider during future development.