When I run it, the system log shows the message Unable to resolve the source file for, but when I check the path of the js files, Magento runs at the wrong path. Does anyone know how to fix this error?enter image description here

1 Answer 1


Run the following commands from CLI and then check.

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
sudo chmod -R 777 var/ generated/ pub/
  • i tried your way but it did'nt work
    – hau
    Nov 27, 2023 at 6:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.