Some time we needs to remove version number in file paths in Magento 2 because these files’ URLs contain the deployed version due to which 404 error occurs.
Please follow below steps :
- Login to admin panel
- Go to Stores > Configuration
- Under Advanced, select Developer
- Expand Static Files Settings
- Set “No” to Sign Static Files
And runs below comands :
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean
That’s it!