Complete setup error note -- extjs reports buffered undefined Error

Source: Internet
Author: User

This afternoon I was planning to complete a function, but the following error was reported when I created the extjs GRID file:

 Uncaught typeerror: cannot read property 'buffered' of undefined ext-all.js: 38  Ext. Define. initcomponent ext -All. JS: 38 B. Implement. callparent ext -All. JS: 38 Ext. Define. initcomponent mstudentlist. JS: 22  Ext. Define. constructor ext -All. JS: 38 B. Implement. callparent ext -All. JS: 38 Ext. Define. constructor ext -All. JS: 38 I ext -All. JS: 38 Ext. Apply. widget ext -All. JS: 38Ext. Define. Create ext -All. JS: 38 Ext. Define. lookupcomponent ext -All. JS: 38 Ext. Define. prepareitems ext -All. JS: 38 Ext. Define. Add ext -All. JS: 38 Ext. Define. opentab menu. JS: 48 Ext. Define. loadmenu menu. JS: 32

This is not the first time you have encountered this problem. Previously, you used to delete all the corresponding files and recreate them. I plan to find the cause this time. Because extjs grid has already been written a lot, it is a good skill, so you can determine the file structure is no problem, and check itCodeNo obvious errors were found. Locate mstudentlist through Chrome's debugging tool. line 22 of JS, content: This. callparent (arguments), so it can be determined that the error appears in the mstudentlist, and the related files only have the corresponding store, model, Controller, and view files. Check the store and model again to confirm that there is no error (the two files are simple and can be seen at a Glance), and then perform the minimal configuration on the view and controller (only configure the required attributes ), the error is still found.

Use Chrome to view the resource files loaded on the page, and find that the store file bound to mstudentlsit is not loaded. Check that both the source file and the file under webroot exist, and use the URL to directly access the file. This is depressing. Why? I was about to give up. I suddenly thought of extjs's dynamic loading mechanism. Will there be no file introduced into the store? After checking that the store attribute has been configured for mstudentlsit, I suddenly thought that if there is no requires (this is equivalent to introducing a package and needs to be introduced under different namespaces, otherwise, it may not be loaded, and an error is returned. Generally, in order to facilitate the configuration of extjs MVC, we are used to placing all the files requiring requires in the Controller configuration, checking the controller, and finally finding the error: the manager should have been introduced. the user is written as admin. user, and there are users under the admin, but the structure is different.

In the final words:Careless!If you encounter this error, you should first check whether each file and Its Introduced file namespace are correct. In most cases, this is the cause.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.