I'm trying to create pie chart. while i was building my code i got error
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\xampp\htdocs\And_Test1\app.js::ClassRequire::Ext.chart.PolarChart
My js code is
Ext.define('And_Test1.view.FormPanel', {
extend: 'Ext.form.Panel',
alias: 'widget.formpanel',
requires: [
'Ext.form.FieldSet',
'Ext.field.Select',
'Ext.Button',
'Ext.chart.PolarChart',
'Ext.chart.series.Pie',
'Ext.chart.interactions.Rotate'
],
config: {
items: [
{
xtype: 'fieldset',
id: 'fieldset',
title: 'Choose a car!',
items: [
{
xtype: 'selectfield',
id: 'makerField',
label: 'Maker',
usePicker: true
},
{
xtype: 'selectfield',
id: 'seriesField',
label: 'Series',
usePicker: true
},
{
xtype: 'selectfield',
id: 'modelField',
label: 'Model',
usePicker: true
},
{
xtype: 'button',
id: 'doneButton',
margin: 10,
text: 'Nice choice!'
}
]
},
{
xtype: 'polar',
height: 150,
colors: [
'#115fa6',
'#94ae0a',
'#a61120',
'#ff8809',
'#ffd13e',
'#a61187',
'#24ad9a',
'#7c7474',
'#a66111'
],
series: [
{
type: 'pie',
labelField: 'x',
xField: 'y2'
}
],
interactions: [
{
type: 'rotate'
}
]
}
]
}
});
and build report is given below
"C:/Users/Administrator/bin/Sencha/Cmd/4.0.4.84/sencha" app build testing
C:\xampp\htdocs\And_Test1>cd /D "C:\xampp\htdocs\And_Test1"
C:\xampp\htdocs\And_Test1>"C:/Users/Administrator/bin/Sencha/Cmd/4.0.4.84/sencha" app build testing
Sencha Cmd v4.0.4.84
[INF]
[INF] init-plugin:
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] app-build-impl:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd-in-path:
[INF]
[INF] find-cmd-in-environment:
[INF]
[INF] find-cmd-in-shell:
[INF]
[INF] init-cmd:
[INF] [echo] Using Sencha Cmd from C:\Users\Administrator\bin\Sencha\Cmd\4.0.4.84 for C:\xampp\htdocs\And_Test1\build.xml
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[INF]
[INF] -after-init:
[INF]
[INF] -before-init-defaults:
[INF]
[INF] -init-defaults:
[INF]
[INF] -after-init-defaults:
[INF]
[INF] -init-compiler:
[INF]
[INF] init:
[INF]
[INF] -before-build:
[INF]
[INF] refresh:
[INF]
[INF] -before-refresh:
[INF]
[INF] -init:
[INF]
[INF] -init-compiler:
[INF]
[INF] -detect-app-build-properties:
[INF] Loading app json manifest...
[INF] Loading classpath entry C:\xampp\htdocs\And_Test1\touch\src
[INF] Loading classpath entry C:\xampp\htdocs\And_Test1\app.js
[INF] Loading classpath entry C:\xampp\htdocs\And_Test1\app
[INF] Loading classpath entry C:\xampp\htdocs\And_Test1\build\temp\testing\And_Test1\sencha-compiler\app
[ERR] C2008: Requirement had no matching files (Ext.chart.PolarChart) -- C:\xampp\htdocs\And_Test1\app.js:26:36
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\xampp\htdocs\And_Test1\app.js::ClassRequire::Ext.chart.PolarChart
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
C:\xampp\htdocs\And_Test1\.sencha\app\build-impl.xml:367: The following error occurred while executing this line:
C:\xampp\htdocs\And_Test1\.sencha\app\js-impl.xml:11: com.sencha.exceptions.ExBuild: Failed to find any files for C:\xampp\htdocs\And_Test1\app.js::ClassRequire::Ext.chart.PolarChart
Please help me to resolve my chart issue.
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\xampp\htdocs\And_Test1\app.js::ClassRequire::Ext.chart.PolarChart
My js code is
Ext.define('And_Test1.view.FormPanel', {
extend: 'Ext.form.Panel',
alias: 'widget.formpanel',
requires: [
'Ext.form.FieldSet',
'Ext.field.Select',
'Ext.Button',
'Ext.chart.PolarChart',
'Ext.chart.series.Pie',
'Ext.chart.interactions.Rotate'
],
config: {
items: [
{
xtype: 'fieldset',
id: 'fieldset',
title: 'Choose a car!',
items: [
{
xtype: 'selectfield',
id: 'makerField',
label: 'Maker',
usePicker: true
},
{
xtype: 'selectfield',
id: 'seriesField',
label: 'Series',
usePicker: true
},
{
xtype: 'selectfield',
id: 'modelField',
label: 'Model',
usePicker: true
},
{
xtype: 'button',
id: 'doneButton',
margin: 10,
text: 'Nice choice!'
}
]
},
{
xtype: 'polar',
height: 150,
colors: [
'#115fa6',
'#94ae0a',
'#a61120',
'#ff8809',
'#ffd13e',
'#a61187',
'#24ad9a',
'#7c7474',
'#a66111'
],
series: [
{
type: 'pie',
labelField: 'x',
xField: 'y2'
}
],
interactions: [
{
type: 'rotate'
}
]
}
]
}
});
and build report is given below
"C:/Users/Administrator/bin/Sencha/Cmd/4.0.4.84/sencha" app build testing
C:\xampp\htdocs\And_Test1>cd /D "C:\xampp\htdocs\And_Test1"
C:\xampp\htdocs\And_Test1>"C:/Users/Administrator/bin/Sencha/Cmd/4.0.4.84/sencha" app build testing
Sencha Cmd v4.0.4.84
[INF]
[INF] init-plugin:
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] app-build-impl:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd-in-path:
[INF]
[INF] find-cmd-in-environment:
[INF]
[INF] find-cmd-in-shell:
[INF]
[INF] init-cmd:
[INF] [echo] Using Sencha Cmd from C:\Users\Administrator\bin\Sencha\Cmd\4.0.4.84 for C:\xampp\htdocs\And_Test1\build.xml
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[INF]
[INF] -after-init:
[INF]
[INF] -before-init-defaults:
[INF]
[INF] -init-defaults:
[INF]
[INF] -after-init-defaults:
[INF]
[INF] -init-compiler:
[INF]
[INF] init:
[INF]
[INF] -before-build:
[INF]
[INF] refresh:
[INF]
[INF] -before-refresh:
[INF]
[INF] -init:
[INF]
[INF] -init-compiler:
[INF]
[INF] -detect-app-build-properties:
[INF] Loading app json manifest...
[INF] Loading classpath entry C:\xampp\htdocs\And_Test1\touch\src
[INF] Loading classpath entry C:\xampp\htdocs\And_Test1\app.js
[INF] Loading classpath entry C:\xampp\htdocs\And_Test1\app
[INF] Loading classpath entry C:\xampp\htdocs\And_Test1\build\temp\testing\And_Test1\sencha-compiler\app
[ERR] C2008: Requirement had no matching files (Ext.chart.PolarChart) -- C:\xampp\htdocs\And_Test1\app.js:26:36
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\xampp\htdocs\And_Test1\app.js::ClassRequire::Ext.chart.PolarChart
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
C:\xampp\htdocs\And_Test1\.sencha\app\build-impl.xml:367: The following error occurred while executing this line:
C:\xampp\htdocs\And_Test1\.sencha\app\js-impl.xml:11: com.sencha.exceptions.ExBuild: Failed to find any files for C:\xampp\htdocs\And_Test1\app.js::ClassRequire::Ext.chart.PolarChart
Please help me to resolve my chart issue.
Chart issue unable to find files related to chart in sencha touch 2.3.x
Aucun commentaire:
Enregistrer un commentaire