Magento 2 require 未定义

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

安装magento 2 CE后,我有

控制台中的

ReferenceError: require is not defined
。我找到了这个解决方案

c:\xampp\php\php.exe -f d:\projects\localsites\magento2.local\magento\bin\magento -- setup:static-content:deploy
这对我有帮助,但是每次我刷新静态缓存时,这个问题都会再次发生。我怎样才能“永远”解决这个问题。

magento magento2 magento-2.0
1个回答
0
投票

切换到开发者模式,静态内容会自动部署(无需

setup:static-content:deploy
)。

© www.soinside.com 2019 - 2024. All rights reserved.