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 :
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!