最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Sencha Touch 2 Logger.js not found - Stack Overflow

programmeradmin1浏览0评论

I'm having a problem opening a sencha touch 2 app on the iOS Simulator, the app doesn't finish loading. When I open the app on the google chrome (http://localhost/.../build/package), I see this problem on the console:

Uncaught Error: [Ext.Loader] Failed loading 'http://localhost/~vasconcelloslf/touch2-hello-world/build/package/sdk/src/log/Logger.js', please verify that the file exists

They told me at the Sencha 2 forum to set "logger":false in this file sencha-touch-2.0.1.1-gpl/mand/src/module/generate/App/app.json.tpl , but I still got the same error. Can someone help me ?

I'm having a problem opening a sencha touch 2 app on the iOS Simulator, the app doesn't finish loading. When I open the app on the google chrome (http://localhost/.../build/package), I see this problem on the console:

Uncaught Error: [Ext.Loader] Failed loading 'http://localhost/~vasconcelloslf/touch2-hello-world/build/package/sdk/src/log/Logger.js', please verify that the file exists

They told me at the Sencha 2 forum to set "logger":false in this file sencha-touch-2.0.1.1-gpl/mand/src/module/generate/App/app.json.tpl , but I still got the same error. Can someone help me ?

Share Improve this question edited Aug 16, 2012 at 21:01 Mike Mackintosh 14.2k7 gold badges61 silver badges87 bronze badges asked Aug 16, 2012 at 5:58 user645579user645579
Add a ment  | 

4 Answers 4

Reset to default 6

In your Sencha app root directory, locate the file app.json. Almost all the way at the bottom, under "buildOptions" you will find

"logger": "no"

set this field to

"logger": false

Then try to rebuild your app with Sencha.

This can also be an AdBlock Plus fault:

Remove the "EasyPrivacy" list, and it works again. It blocks the Logger.js loading. Or: Add localhost or your development server to the whitelist (a good idea anyways!).

I had the same issue but changing logger to false alone doesn't helped me. I could solve the problem by additionally removing requires : 'Ext.Logger' from my classes.

I had the same issue and i changed it to "false" and rebuild everything from scratch and it worked... xcode 4.4.1 // phonegap 2 // sencha touch 2

发布评论

评论列表(0)

  1. 暂无评论