javascript - sencha extjs 5.0 app not working in production build - Stack Overflow

I have just built a new app with ExtJS 5.0 which seems to be really awesome. The app is working fine in

I have just built a new app with ExtJS 5.0 which seems to be really awesome.

The app is working fine in development mode, but as soon as I build the app with the mand line tools and deploy it, it stops working.

The build mand I use when I'm in the directory of the project:

sencha app build production

The mand works fine so far, no error is in the output. I'm using a little server-side with php, so I have to change the ending of the index.html to index.php and also include the php folder again manually in the production server. (I didn't find out how to change that in the build process itself)

so far, everything seems fine for me in the basic output of my index file, but the app won't start because of an error in the console:

GET /.js?_dc=1404608946314 404 (Not Found) (index):23
Uncaught TypeError: object is not a function 

What does Ext try to include here?

When I start the app in development mode i see many includes of basic class files and stuff in the network tab which works - here it only starts with an include of an empty file called .js which seems totally broken.

I tried to debug the part fetchSync of the app.js file (the basic Ext stuff i think) to find out which thing I he tries to include at that point and it seems to me that it is the gridfilters-plugin.

Some variables are suddenly null during all that steps there and I don't know why.

What can be wrong with the app?

I have just built a new app with ExtJS 5.0 which seems to be really awesome.

The app is working fine in development mode, but as soon as I build the app with the mand line tools and deploy it, it stops working.

The build mand I use when I'm in the directory of the project:

sencha app build production

The mand works fine so far, no error is in the output. I'm using a little server-side with php, so I have to change the ending of the index.html to index.php and also include the php folder again manually in the production server. (I didn't find out how to change that in the build process itself)

so far, everything seems fine for me in the basic output of my index file, but the app won't start because of an error in the console:

GET http://admin.vp24./.js?_dc=1404608946314 404 (Not Found) (index):23
Uncaught TypeError: object is not a function 

What does Ext try to include here?

When I start the app in development mode i see many includes of basic class files and stuff in the network tab which works - here it only starts with an include of an empty file called .js which seems totally broken.

I tried to debug the part fetchSync of the app.js file (the basic Ext stuff i think) to find out which thing I he tries to include at that point and it seems to me that it is the gridfilters-plugin.

Some variables are suddenly null during all that steps there and I don't know why.

What can be wrong with the app?

Share Improve this question edited Apr 14, 2018 at 5:41 Narendra Jadhav 10.3k15 gold badges35 silver badges44 bronze badges asked Jul 6, 2014 at 1:27 jebbiejebbie 1,4573 gold badges18 silver badges27 bronze badges 3
  • Did you try sencha app build production? – Darin Kolev Commented Jul 7, 2014 at 20:41
  • 2 Try sencha app build testing and see if you get any runtime errors. Don't forget to "pause on exceptions" in your devtools, so you can walk the stack trace and find the culprit. – arthurakay Commented Jul 8, 2014 at 18:34
  • 1 i totally forgot to answer, thanks to @arthurakay, this gave me the solution.. i was missing an import for grid-filters. answer that again as a full answer and i will accept it – jebbie Commented Aug 4, 2014 at 7:18
Add a ment  | 

2 Answers 2

Reset to default 4

Try sencha app build testing and see if you get any runtime errors.

Don't forget to "pause on exceptions" in your devtools, so you can walk the stack trace and find the culprit.

Try removing validations from your models.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744740470a4590995.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信