After installing and deploying the static files, Magento is looking for:

instead of:

How can I fix it?


1 Answer 1


It's happening because you're using NGINX, so the root folder is the pub folder.

Probably the issue is not the file doesn't exist there, but the generation of static files hasn't being performed. Try these commands below to set the store in the developer mode and to generate all the static files.

alias mage="php -d bin/magento" && \
mage deploy:mode:set developer && \
mage setup:upgrade && \
mage cache:flush && \
mage indexer:reindex && \
mage setup:static-content:deploy -f && \
mage setup:di:compile

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.