UltimateModuleCreator / Umc_Base

MIT License
78 stars 40 forks source link

prototype issue #44

Open sivajik34 opened 6 years ago

sivajik34 commented 6 years ago

magento version 2.2.2

$.mage.validation.prototype._onSuccess = function(response) { ... umc.js:29 Uncaught TypeError: Cannot read property 'prototype' of undefined

dhavalsolankidrc commented 5 years ago

Hello, I have fixed this issue. Please modify below file.

app/code/Umc/Base/view/adminhtml/web/js/umc.js

add 'mage/validation/validation' in define

so it will be like below

define([
'jquery',
'mage/template',
'Magento_Ui/js/modal/confirm',
'jquery/jstree/jquery.jstree',
'mage/validation/validation'  //added this line
], function($, mageTemplate, confirm) {

After that deploy static content. Hope it helps :)