当我用 php bin/magento setup:static-content:deploy
编译静态时,我收到以下错误:
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'
Unable to get content for 'frontend/Magento/luma/en_US/css/source/lib/_lib.less'
最佳答案
我也面临同样的问题。然后我浏览了GitHub上不同人的评论here .之后,我能够通过恢复根目录下的文件夹“lib/web/css”或整个“lib/web”来修复。
最后运行命令,没有错误:
bin/magento setup:static-content:deploy en_US -f
根据您的安装版本,您可以从这里获取它:https://github.com/magento/magento2/tree/2.3/lib
关于magento2 - 无法获取 'frontend/Magento/blank/en_US/css/source/lib/_lib.less' 的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41125500/