Titanium JIRA Archive
Alloy (ALOY)

[ALOY-671] Alloy app when accessing module from controllers->index.js, giving runtime error

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2013-05-31T12:32:08.000+0000
Affected Version/sAlloy 1.1.3
Fix Version/sn/a
ComponentsSamples & Templates
Labelsqe-3.1.1
ReporterDhirendra Jha
AssigneeTony Lukasavage
Created2013-05-28T11:38:46.000+0000
Updated2014-06-22T13:23:10.000+0000

Description

This is not a regression. Tried with alloy 1.1.1 and 1.1.2. Error is coming with them as well. Steps to reproduce: 1. Copy 'apps/basics/controller_events' content into an existing project 'app' folder 2. Run the app on an android device Expected result: 1. The app should run successfully. Actual result: 1. It gives a runtime error.Logs and snapshot of the exception are attached with bug.

Attachments

FileDateSize
alloy_exception.png2013-05-28T11:38:46.000+000052450
Alloy Exception2013-05-28T11:38:46.000+0000467

Comments

  1. Tony Lukasavage 2013-05-28

    It sounds like you are using the versions of the apps from the github repository instead of the version with the alloy-1.1.3-alpha module. The github repo is in the process of adding runtime unit testing. You copied only parts of the app and not all the folders, which is causing your error. If you copied over the "specs" folder as well, as noted in the error message, it should run fine with the runtime unit testing included. This of course assumes that you also installed the version of alloy from the repo.
  2. Paras Mishra 2013-05-31

    Runtime error occurs as "Requested module not found: specs/index" Environment used: Device : iPhone 4S , iOS version : 5.1.1 Device: Samsung Galaxy Note, Android version: 2.3.6 SDK: 3.1.1.v20130530204550 CLI version : 3.1.0 OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.1.201305271814 XCode : 4.5.1 Steps to reproduce: 1. Navigate to /alloy/test/apps/basics/simple. 2. Copy all the Directories into the app folder of project. 3. Execute the app on the device. Expected: App should work fine with no error. Actual: Runtime error occured as"Requested module not found: specs/index"
  3. Tony Lukasavage 2013-05-31

    Again, you guys are using the latest test apps which correspond to an unreleased version of Alloy. You are getting errors because you are running test apps on earlier versions of Alloy that don't support them. Use the github repo's tags to look at the test apps that correspond to your version. For reference the latest stable version of Alloy is 1.1.2. *1.1.2 tagged version:* https://github.com/appcelerator/alloy/tree/1.1.2 *All Alloy tagged versions:* https://github.com/appcelerator/alloy/tags
  4. Paras Mishra 2013-06-03

    Thanks Tony for the info. Its working fine now.

JSON Source