无法在Magento 2.0中部署静态内容

问题描述 投票:0回答:3

[当我尝试部署静态内容时,它给我一个错误。

[Magento\Framework\View\Asset\ContentProcessorException]
  Compilation from source:
  frontend/Smartwave/porto/en_US/css/styles-m.less
  ._lib-popup-button-close-icon is undefined in /var/www/html/var/view_preprocessed/css/frontend/Smartwave/porto/en_US/css/source/_popups.less

在ssh中并停止处理。

php magento magento-2.0
3个回答
1
投票

如果将Magento升级到v2.1.0,则在自定义主题中覆盖_ popups.less文件时,可能会出现此错误。

您将需要检查文件差异:

._ lib-popup-button-close-icon需要通过.lib-popup-button-close-icon进行更改

谢谢,


0
投票

这是因为luma主题在代码中存在错误,但尚未修复。

[[_popups.less的第30行).lib-popup-button-close-icon

应该是

._lib-popup-button-close-icon

然后在同一文件的第23行中删除所有那些较少的功能。 

0
投票
将我的magento更新为v 2.1.0之后,我开始收到上述错误。为了修复它,我在Magento根文件夹中运行
© www.soinside.com 2019 - 2024. All rights reserved.