[AC-6079] CLI build setting the Alloy theme to NULL
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2019-01-09T13:05:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator CLI |
Labels | alloy, build, cli, theme |
Reporter | Christopher Stea |
Assignee | Shak Hossain |
Created | 2018-12-24T20:31:21.000+0000 |
Updated | 2019-01-09T13:05:38.000+0000 |
Description
When building for iOS on CLI 7.0.8 and 7.0.9, the build tool forces config=null and the app is built without including any of the theme's .tss files.
Building the same code using CLI 7.0.7 works around the issue.
Attachments
File | Date | Size |
---|---|---|
AC-6079.zip | 2018-12-25T23:10:44.000+0000 | 8661356 |
AppceleratorIssue6079.zip | 2018-12-25T19:09:03.000+0000 | 8663638 |
CLI 707.png | 2018-12-25T23:04:40.000+0000 | 31448 |
CLI 709.png | 2018-12-25T23:15:51.000+0000 | 32582 |
Screenshot_20181226-112936.png | 2018-12-26T05:59:25.000+0000 | 46689 |
Screenshot_20181226-115150.png | 2018-12-26T05:58:34.000+0000 | 43389 |
Hello, Thanks for reporting this. Can you please share a simple test case to reproduce the issue on our end?
Hi I think this issue affect android too. I attached a sample project with a themed config.json. The problem: - Themed config.json global nodes are "ignored" after frist compilation on liveview mode, ad-hoc, production or test mode. More: *appc ti clean* not solve the problem. The error console: [INFO] Finished building the application in 1s 946ms [INFO] Launching iOS Simulator [LiveView] version 1.2.2 [LiveView] Alloy project monitor started [LiveView] File Server Started on 0.0.0.0:8324 [LiveView] Event Server Started on 0.0.0.0:8323 -- Start simulator log ------------------------------------------------------- [INFO] AppceleratorIssue6079 1.0 (Powered by Titanium 7.5.0.2e5a7423d0) [LiveView] Client connected [INFO] [LiveView] Error Evaluating app.js @ Line: 39 [ERROR] TypeError: undefined is not an object (evaluating 'Alloy.CFG.colors.primary') [ERROR] File: app.js [ERROR] Line: 39 [ERROR] SourceId:
Attached is a simple testcase which is basically the Titanium Alloy Sample app with an added theme that changes the background color of the .container class. [^AC-6079.zip] When built using CLI 7.0.7 I get the expected result: !CLI 707.png|thumbnail! But when building using CLI 7.0.8 or 7.0.9, the result is: !CLI 709.png|thumbnail! The build log shows that theme is set to NULL even though it is set properly in config.json:
This issue is duplicate of ALOY-1638. Reported for reopening.
Closing as a dupe of ALOY-1638, for now please use appc cli 7.0.7, 7.0.9 did not update alloy correctly to fix this issue