During development I run my application by "sencha app watch" and I had no errors. But when I build my app by "sencha app build testing" I got the error for different standart components: for combobox, hiddenfield, fieldcontainer. I've solved it by adding component class names into "require" section. My question: why I have to do this trick? And what is wrong with this fields? Because for textfield I hadn't got any errors. I use ext js 6.2.0. gpl version
Unrecognized class name / alias widget.combobox (hiddenfield, fieldcontainer, ...)
2.8k views Asked by Artsiom Kotau At
2
There are 2 answers
0
Alexander
On
When you use the development version of ExtJS, it is based on the app-all.js, which contains most, if not all, ExtJS classes, and has a size of 2 MB minified (9 MB unminified). So once that file is loaded, they are all fully available.
When you compile a version of ExtJS, Sencha Cmd builds a dependency tree of the required classes to keep the size of the resulting app.js down to a minimum (in my app, it's 1.1 MB minified). For this dependency tree, it starts at the app.js file and considers definitions in the classes:
and in the controllers:
but not elsewhere, e.g.:
Ext.create()(which may be scattered around your code if you build your components dynamically)xtypein the component tree.
Related Questions in EXTJS
- how to define Ext.elevateFunction
- `ariaAttributes` config is not working in ExtJS modern toolkit
- Ext JS Issue With Window.id when more than 1 instance of Ext sandbox version is bundled
- sencha extjs remove approach and use .sync() is not calling API
- Extjs - get SVG image element by ID inside qtip
- Use custom icon in Pimcore menu item
- Extjs 7.0 Classic Mymask Message is loading and will disappear but only one user is not closing when screen renders
- ExtJs - what install on server
- Problem with building my app with ExtJS CE
- Ext.js Cannot read properties of undefined (reading 'controller')
- Get class name by xtype
- ExtJs: find a record, edit and post changes
- Is it possible to use custom variables in an extjs store?
- How to add an authentication header in sencha architect, using the store option?
- Ext JS: vulnerabilities with CSP headers
Related Questions in COMBOBOX
- How can I get this ComboBox to bind, populate the dropdown and write back selected value on update?
- Combo box in NextJS
- Combobox "ArgumentOutOfRangeException" at "ComboBox.ObjectCollection.cs"
- How to manually add a value to data source with combo box in Power Apps
- Blazor two-way data binding with InputSelect never enters VM property set
- wpf combobox how to handle PreviewMouseWheel
- How to reset a group of comboboxes back to no selection tkinter?
- Disable either the Togglebutton or Popup Dropdown of a Combobox via property binding
- In Excel I need to use userform combobox to lookup number from table, then use that number to replace a number in another table
- String Type Value Member and Display Member in VB.NET Combobox with manually filled data
- SfComboBox Selection Box Blank After Selection Until Clear Button Pressed
- Excel VBA UserForm ComboBox not displaying named range list
- Power apps Groupby Function Combobox Selected Value
- How do I fix my Problem with ComboBoxes in Java Swing?
- .NET MAUI Custom ComboBox
Related Questions in EXTJS6
- How to Implement a Theme Switcher (Light/Dark Mode) in ExtJS 6.6 Classic Toolkit?
- ExtJs grouped-header-grid - how to use it to group headers?
- ExtJS store is not updated or wrongly updated after changing associated object
- Sort a String characteristc in combobox ExtJs
- How to change body padding of the windows in ExtJS Triton?
- No scroll bar showing by default, if there more rows in Extjs (6.0.0.640) Grid and Combo box
- can we do the same thing for grid checkcolumns?
- Icon class does not apply to a ExtJS menu item containing text field
- extjs 6 grid scrollbar jumping
- List the fields associated with a record in ext.js
- how to get file details of uploaded file in extJS
- How to change the data in extJS combo dropdown?
- Unable to select text in resizable grid
- How to set length of a combo box to only allow one of two values
- No such property: usedPackageDeps
Related Questions in HIDDENFIELD
- How Get HiddenField Value on PageLoad (Code behind)
- How to access asp hiddenfield value from UserControl in Javascript (getElementByID not working)
- 'default2_aspx' does not contain a definition for 'hfEmployee_ValueChanged'
- Storing Label value in Hidden Field
- Orbeon: reset value of hidden field
- hidden field in angular is null on form submit
- Swift iOS- How to hide label then make it appear after a certain time period
- How to get value of Hidden Field in Selenium or JavaScript?
- Unrecognized class name / alias widget.combobox (hiddenfield, fieldcontainer, ...)
- HiddenField not passing value to my <p></p> tag
- How to save value of HiddenField in sql?
- Passing a string as a variable into JavaScript function doesn't work
- VB HiddenField loses value after setting value in Javascript [jQuery dialog]
- how to keep bootstrap tabs after page reload when uploading image
- How / When / Where should I use the hidden field?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Requires: Loads all classes by the given names and all their direct dependencies.
This error is very common and it generally happens because the required Ext component is not loaded or one of its direct dependencies are not loaded before using the component.
In a development set up, we have the Ext setup in our workspace
generally making it easy to pull the dependencies required.
In a production or testing case, it is unable to load the file or load one of its direct dependencies causing this issue.
Mainly these dependencies are dynamically loaded.
It always a best practice to make sure you use requires for any component you use.
This implies that there is nothing wrong with any of the components just some load issue most because of the way they are internally bundled.