[TIMOB-6689] iOS: CommonJS - relative path in require() causes nested include() statements to fail
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2011-12-15T18:05:28.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-50 |
Components | iOS |
Labels | n/a |
Reporter | Tim Poulsen |
Assignee | Blain Hamon |
Created | 2011-12-15T08:08:41.000+0000 |
Updated | 2011-12-19T06:23:33.000+0000 |
Description
Expected: require('ui').createMainWindow().open() should load module and any include() statements within ui.js should work
Actual: throws file not found error on the include() statement; need to use require('/ui').createMainWindow().open()
Attached file demonstrates problem.
The relative path worked in 1.7.6 and the CI build of 1.8 noted in the code comments
Possibly related to TIMOB-6602
Attachments
From the provided test, we cannot reproduce. Three team members ran the attached test and were unable to get the error; everybody saw the label with the correct text within it. This could be the result of changes since the tested SDK.
Tested with 1.8.0.1.v20111218001633 and I cannot reproduce the error.