Magento 2:无法解析主题静态文件
Magento 2: Could Not Parse Theme Static File
我正在尝试覆盖 magento/module-configurable-product/view/frontend/web/js/configurable.js 但是一旦这样做,我得到:
Could not parse theme static file 'app/design/frontend/XXX/XXX/Magento_Configurable_Product/web/js/configurable.js'
我真的很困惑这可能是什么,我已经三次检查了名称和目录,我 99% 确定它们是正确的并遵循正确的流程。覆盖文件的路径是:
app/design/frontend/XXX/XXX/Magento_Configurable_Product/web/js/configurable.js
我四处搜索但没有找到任何类似的东西,所以非常感谢任何建议!
谢谢!
原来正确的文件夹名称是 Magento_ConfigurableProduct,这是我在检查 requirejs-config.js!
后发现的
我正在尝试覆盖 magento/module-configurable-product/view/frontend/web/js/configurable.js 但是一旦这样做,我得到:
Could not parse theme static file 'app/design/frontend/XXX/XXX/Magento_Configurable_Product/web/js/configurable.js'
我真的很困惑这可能是什么,我已经三次检查了名称和目录,我 99% 确定它们是正确的并遵循正确的流程。覆盖文件的路径是:
app/design/frontend/XXX/XXX/Magento_Configurable_Product/web/js/configurable.js
我四处搜索但没有找到任何类似的东西,所以非常感谢任何建议!
谢谢!
原来正确的文件夹名称是 Magento_ConfigurableProduct,这是我在检查 requirejs-config.js!
后发现的