1

I am using Magento latest version Magneto2.1.3 when I run this command and check admin/frontend I face Js missing issue in console..

Command Run :: php bin/magento setup:static-content:deploy

Issue ::

Js missing whole pages.

enter image description here

Teja Bhagavan Kollepara
  • 3,816
  • 5
  • 32
  • 69
Magento2 Devloper
  • 2,084
  • 2
  • 25
  • 57

1 Answers1

2

I have just face this issue.

This issue has been raised due to mod_rewrite.

If you goes to pub/static/.htaccess. at there in .htacess have some rewrite rules for Remove signature of the static files that is used to overcome the browser cache from static content. That is not working that what why in static content urls is look like

www.example.com/pub/static/version[Version].....

See at

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Remove signature of the static files that is used to overcome the browser cache
    RewriteRule ^version.+?/(.+)$ $1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l

    RewriteRule .* ../static.php?resource=$0 [L]
</IfModule>

Solution

May be in your mod_rewrite does not enable properly.You should enable it properly in order to resolve your problem.

Amit Bera
  • 77,456
  • 20
  • 123
  • 237