Titanium JIRA Archive
Alloy (ALOY)

[ALOY-798] Modify Error Message: Cannot read property 'manifest' of undefined

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-08-19T22:31:04.000+0000
Affected Version/sAlloy 1.2.0
Fix Version/sAlloy 1.3.0
ComponentsWidgets
Labelsqe-testadded
ReporterAlan Leard
AssigneeTony Lukasavage
Created2013-08-19T18:20:09.000+0000
Updated2013-10-14T18:51:07.000+0000

Description

Description

If you build an alloy app with a widget in the dependencies that doesn't exist the error message is 'Cannot read property 'manifest' of undefined'. It would be helpful to change that error message to something more descriptive like [Error] config.json/line 10: Missing dependency 'test:1.0'

Resources

I have attached a sample app to reproduce the error

Attachments

FileDateSize
app.zip2013-08-19T18:20:09.000+00004987617

Comments

  1. Tony Lukasavage 2013-08-19

    PR: https://github.com/appcelerator/alloy/pull/228 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-798

    Compile the app

    It should compile and load (a blank, white app) successfully

    Add a non-existent widget to the config.json dependencies. For the sake of this test, we'll call it "some.missing.widget"

    Attempt to compile the app.

    It should fail with the following error:

       [ERROR] config.json references non-existent widgets: ["some.missing.widget"]
       [ERROR] If you are not using these widgets, remove them from your config.json dependencies.
       [ERROR] If you are using them, add them to your project's widget folder.
       [ERROR] Alloy compiler failed
       
  2. Federico Casali 2013-10-14

    Verified fixed. TiSDK 3.2.0.v20131013140318 Alloy 1.3.0 Closing

JSON Source