[ALOY-671] Alloy app when accessing module from controllers->index.js, giving runtime error
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-05-31T12:32:08.000+0000 |
Affected Version/s | Alloy 1.1.3 |
Fix Version/s | n/a |
Components | Samples & Templates |
Labels | qe-3.1.1 |
Reporter | Dhirendra Jha |
Assignee | Tony Lukasavage |
Created | 2013-05-28T11:38:46.000+0000 |
Updated | 2014-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
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.
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"
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
Thanks Tony for the info. Its working fine now.