I get an error in console: Ext.application is not a function
. My index.html
file contains this code:
...
<link rel="stylesheet" type="text/css" href="/ext-5.0.1/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css" />
<script src="/ext-5.0.1/ext-all-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
...
While app.js
has just this code, taken from one demo:
Ext.application({
name: 'AM',
appFolder: 'app',
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [{
xtype: 'panel',
title: 'Users',
html : 'List of users will go here'
}]
});
}
});
EDIT
By the way, even running "official" /ext-5.0.1/examples/app/simple/simple.html
I get the same error. Why is that?
Instead of
<script src="/ext-5.0.1/ext-all-debug.js"></script>
You should use
<script src="/ext-5.0.1/build/ext-all-debug.js"></script>
The second one contains all Components and Classes as expected.