Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1665] Error when using liveview and require in code

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-09-30T03:39:33.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Titanium SDK & CLI
Labelsios
ReporterMichael Kåring
AssigneeShak Hossain
Created2015-06-10T11:34:27.000+0000
Updated2016-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.

Comments

  1. Radamantis Torres-Lechuga 2015-06-26

    [~michaelkaaring] can you please attach a test case and send steps to reproduce the issue? Thanks

JSON Source