dimanche 20 avril 2014

Example code doesn't compile in newer version CMD

I just upgraded my SenCha CMD(to v4.0.4.84) 10 mins ago and cannot run any demo code under the folder examples.

Steps I did:


1. cd into the project (touch-2.3.1/examples/<project name>)

2. sencha web --port <port number> start


then typed the localhost:<port number> in the url textbox in my browser, got errors in the console :

Uncaught TypeError: Cannot read property 'addClassPathMappings' of undefined


Tried to build it

1. sencha app build


Got errors again:


[ERR] Failed to resolve dependency Ext.chart.CartesianChart for file StockApp.vi

ew.Preview

[ERR]

[ERR] BUILD FAILED

[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.

chart.CartesianChart

[ERR]

[ERR] Total time: 4 seconds

[ERR] The following error occurred while executing this line:

D:\Installation packages\Mobile Development\Sencha\sencha-touch-2.3.1\touch-2.3.

1\examples\stockapp\.sencha\app\build-impl.xml:367: The following error occurred

while executing this line:

D:\Installation packages\Mobile Development\Sencha\sencha-touch-2.3.1\touch-2.3.

1\examples\stockapp\.sencha\app\js-impl.xml:11: com.sencha.exceptions.ExNotFound

: Unknown definition for dependency : Ext.chart.CartesianChart

[ERR]

The application was last modified by an older version of Sencha Cmd (4.0.2.64)

the current is 4.0.4.84.

Please run "sencha app upgrade" to update to 4.0.4.84.


Then followed its instruction and tried to upgrade the demo project to the latest version of framework.

1. sencha app upgrade

Again, the same error shows.


So there is no way to run the example code.


Could someone in SenCha team fix this?


Thank you.





Aucun commentaire:

Enregistrer un commentaire