0

I am getting the following error while running Sencha application build production.

Login.js

xtype: 'login', extend: 'Ext.window.Window', requires: [ 'Ext.window.Window', 'MyApp.view.login.LoginController', 'Ext.form.Panel' ],

Application.js

Ext.define('MyApp.Application', {
extend: 'Ext.app.Application',
requires: [
'Ext.window.Window'

],
name: 'MyApp',

App.js

Ext.application({
name: 'MyApp',

extend: 'MyApp.Application',

requires: [
    'MyApp.view.login.Login',
    'Ext.window.Window'
],
0

2 Answers 2

1

From the "Android" tag I deduce that you are trying to make an ExtJS 6.0.x "modern" app - which is good, because "modern" is far better for touch displays than "classic".

But "modern" toolkit does not have a Ext.window.Window. For a list of available views, please compare the official documentation for modern toolkit.

Depending on what you want to do, you may opt for a list, a dataview, a form, a sheet. The best overview by far over the available components gives the Sencha Touch kitchen sink. I have not found anything similar for its successor, the ExtJS "modern" toolkit.

Sign up to request clarification or add additional context in comments.

Comments

0

Ok, reading better you error logs alexander say truth, using modern you can't use Ext.window.Window!

Have a look to docs, that component doesn't exist on extjs 6 modern

2 Comments

if you extend the class in your login you must do it in your application class not in the login
i have edited the question and added code snippets of Application.js and App.js. Please guide me where I am going wrong.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.