PDA

View Full Version : Why do I get YUI Parse Error with sencha app build?



xjscrafter
9 Feb 2014, 11:50 PM
I've just started using Sencha Cmd, but the first time I ran sencha app build I get errors like this:

YUI Parse Error (invalid property id => (Ext.cmd.derive('atlas.wizard.base.store.WizardStore'

Parse Error (missing name after . operator => var aggExport = wizardData.export;) -- unknown-file:74618:38

Is YUI strict or something regarding what you can do in your code?

xjscrafter
10 Feb 2014, 1:05 AM
Its because we are using JavaScript keyword "export". So sencha cmd will help us stop doing this.

ranob
19 Feb 2014, 3:12 AM
The same happens to me. Do I have to remove all the references to "export" from my code? . Because I cannot, there are a lot.

Can I say to you not to verify that?

xjscrafter
19 Feb 2014, 6:33 AM
I got around this by using myvar["export"] instead of myvar.export throughout our code.