[AC-1665] Error when using liveview and require in code
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Needs more info |
| Resolution Date | 2015-09-30T03:39:33.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Appcelerator CLI, Titanium SDK & CLI |
| Labels | ios |
| Reporter | Michael Kåring |
| Assignee | Shak Hossain |
| Created | 2015-06-10T11:34:27.000+0000 |
| Updated | 2016-03-08T07:38:09.000+0000 |
Description
I get script error when using the liveview function on my code.
I have a file in my lib folder called network.js. Here are an example of the contents:
var network = {
login: require('network_login'),
logout: require('network_logout')
}
module.exports = network;
This network.js file in included across the project where it is needed, by doing require('network');
So my checking the values of the network object in network.js when using liveview. the requires i do inside network.js is just null.
[~michaelkaaring] can you please attach a test case and send steps to reproduce the issue? Thanks