我试图在 Magento 2 中打开设计配置,但它进入了加载的无限循环,当我检查页面时,我收到此错误
未捕获的类型错误:Constr 不是 layout.js:66 中的构造函数
,任何人都可以帮助我吗?
Uncaught TypeError: Constr is not a constructor at 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) at fire (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.(anonymous function) (http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/jquery.js:3301:34) at fire (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.(anonymous function) [as resolve] (http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/jquery.js:3301:34) at 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) at Object.context.execCb (http://127.0.0.1:7777/Magento/pub/static/version1493554470/adminhtml/Magento/backend/en_US/mage/requirejs/resolver.js:131:31)
最佳答案
您的网站部署似乎未正确完成。使用以下命令并再次部署:
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
关于javascript - Magento 2 设计配置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43706360/