我正在尝试在Magento 2中打开设计配置,但它进入无限循环加载,当我检查页面时出现此错误
layout.js中的Uncaught TypeError: Constr is not a constructor
:66,任何人都可以帮助我吗?
未捕获的TypeError:Constr不是构造函数 在Object.initComponent(http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/Magento_Ui/js/core/renderer/layout.js:66:25) 在火上(http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/jquery.js:3099:30) at Object.fireWith [as resolveWith](http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/jquery.js:3211:7) at Object.deferred。(匿名函数)(http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/jquery.js:3301:34) 在火上(http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/jquery.js:3099:30) at Object.fireWith [as resolveWith](http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/jquery.js:3211:7) at Object.deferred。(匿名函数)[as resolve](http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/jquery.js:3301:34) 在http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/Magento_Ui/js/core/renderer/layout.js:59:20 at Object.execCb(http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/requirejs/require.js:1650:33) 在Object.context.execCb(http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/mage/requirejs/resolver.js:131:31)
答案 0 :(得分:0)
您的网站部署似乎未正确完成。使用下面的commond并再次部署:
rm -rf var/*
rm -rf pub/static/*
php bin/magento setup:upgrade //(only for new extensin)
php bin/magento setup:static-content:deploy
chmod -R 7777 var pub