Я пытаюсь скопировать форму оценки примера с Sencha's online examples. Я не понимаю, почему я получаю эту ошибку:Оценка формы в ExtJS
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\users\Diederiksj\Desktop\FreshApp\classic\src\view\form\RatingForm.js::ClassRequire::Ext.ux.rating.Picker
[ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.
[ERR] java:99)
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\build-impl.xml:247: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\watch-impl.xml:61: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\build-impl.xml:380: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\init-impl.xml:382: com.sencha.exceptions.ExBuild: Failed to find any files for C:\users\Diederiksj\Desktop\FreshApp\classic\src\view\form\RatingForm.js::ClassRequire::Ext.ux.rating.Picker
Когда я смотрю в AppRootDirectory/ext/packages/ux/classic/src/rating
, файл Picker.js
есть, автоматически создается ExtJS при создании приложения. Вот отрывок из класса, где я пытаюсь требовать класс Picker:
Ext.define('FreshApp.view.form.RatingForm', {
extend: 'Ext.panel.Panel',
xtype: 'form-rating',
requires: [
'Ext.ux.rating.Picker'
],
title: 'Rating Form',
viewModel: true,
bodyPadding: 10,
width: 520,
height: 500,
minHeight: 400,
resizable: true,
frame: true,
layout: {
type: 'vbox',
align: 'stretch'
},
defaultType: 'textfield',
Любая помощь будет оценена. Благодарю.
Есть ли у вас в ваших app.js что-то вроде 'путей: {«Ext.ux»:«путь/к/щ /»}' – serg