Reputation: 31
I am trying to extend module-ui/base/web/js/form/element/select.js
I have created a module, added requirejs-config.js
and copied select.js
by creating same file path as it in vendor.
After setup:upgrade and setup:static-content:deploy, I get error saying
"Uncaught Error: Script error for: Thelist_Customjs/js/form/element/abstract"
My requirejs-config.js file code is as follows
var config = {
map: {
'*': {
'Magento_Ui/js/form/element/select':'Thelist_Customjs/js/form/element/select'
}
}
};
Upvotes: 1
Views: 1014
Reputation: 672
You need to also copy the file from
vendor\magento\module-ui\view\base\web\js\form\element\abstract.js
to
Thelist_Customjs/js/form/element/abstract.js
Becasue in select.js
that file is used.
Upvotes: 1