Question

I recently installed Magezon Pagebuilder plugin. It works perfect and everything, however when I add Sliders or Carousel I get this 2 errors:

require.js:1895 GET http://dev.emall.com.mx/pub/static/version1606325200/adminhtml/Transom/ChangeAdminLogo/en_US/jquery-ui-modules/widget.js net::ERR_ABORTED 404 (Not Found)


Uncaught Error: Script error for: jquery-ui-modules/widget
http://requirejs.org/docs/errors.html#scripterror
    at makeError (require.js:166)
    at HTMLScriptElement.onScriptError (require.js:1681)

I have tried this solutions:

php bin/magento setup:static-content:deploy 
php bin/magento setup:di:compile
php bin/magento setup:upgrade

Delete var/cache and var/view_preprocessed.

clean cache

I checked my .htaccess and seems to be in order, in pub/static and pub/media.

I have used all solutions I know, what could it be?

Thanks!

Was it helpful?

Solution

I have discovered what was causing the problem in case you have the same error with this Magezon PageBuilder module.

in app/code/Magezon/PageBuilder/view/base/web/js/slider.js the jquery ui-modules are defined like this:

define([
    'jquery',
    'jquery-ui-modules/widget',
    'Magezon_Core/js/owl.carousel.min'
]

I don't know if it's my Magento 2.3.1 version, but I changed it for this , and it worked.

define([
    'jquery',
    'jquery/ui-modules/widget',
    'Magezon_Core/js/owl.carousel.min'
]

Just change jquery-ui-modules for jquery/ui-modules. The errors will disappear and sliders will work fine.

Greetings!

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top