0

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

http://127.0.0.1/magento2/static/adminhtml/Magento/backend/en_US/requirejs/require.js

instead of:

http://127.0.0.1/magento2/pub/static/adminhtml/Magento/backend/en_US/requirejs/require.js

How can I fix it?

Regards.

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, privacy policy and cookie policy

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