19 Mar 2013 4:42 AM #1
I have a problem in production mode.
I have no error / warning in development ou testing when I'm running my application with Chrome.
There is no error / warning when I build with :
sencha app build production
Error evaluating http://sencha.alteom.com/squarehabit...duction/app.js with message: SyntaxError: Unexpected identifier sencha.alteom.com:56
Maybe there is a problem with the production micro loader ?
I use the commercial 2.1.1 sdk and the sencha cmd 3.0.2 for Mac OS X.
21 Mar 2013 5:20 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Is this on an production build that is upgrading a previous version that is cached on the device?
Sencha Inc, Senior Forum Manager
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
21 Mar 2013 6:47 AM #3
I can reproduce the problem on all my devices : iPhone / iPad (Safari debugger), Android tablet. Same error with Chrome and Safari on my mac.
My application is not in reel production yet. So I also tried to delete all files from the server, and reload the app on my device until I see a change. But when I upload the files, the same error happens.
According to the version I try to build, the error can change.
Sometimes Unexpected identifier, sometimes ) expected or ] expected. Sometimes, it just works fine.
I think I have observed that an old configuration on a component can make the application to work in development or testing mode, but generates this kind of problem on production.
Is that possible ?
21 Mar 2013 2:52 PM #4
I solved my problem by deleting the archive directory and launched the build command to build from scratch without deltas.
But with another delta, the same error happens.
22 Mar 2013 5:38 AM #5
The problem comes from the cache, when I drop the browser cache the upgrade works fine.
Is there a process for an upgrade on iPad ?
Because when the app is installed on the launchpad, there's no way to reload it without local cache.