2

After installing magento 2 CE, I had

ReferenceError: require is not defined in console. I found this solution

c:\xampp\php\php.exe -f d:\projects\localsites\magento2.local\magento\bin\magento -- setup:static-content:deploy And that helps me, but every time when I flush my static cache, this problem happens again. How I can solve this problem "forever".

Andrii
  • 57
  • 4
  • 11

1 Answers1

0

Switch to the developer mode, and the static content will be deployed automatically (no need for setup:static-content:deploy).

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
Dmitrii Fediuk
  • 434
  • 9
  • 11
  • 1
    After flush static cache, any files are not build in this folder (pub/static) it is normal? – Andrii Nov 27 '15 at 12:19