I am trying to deploy the static content but in frontend and backend require js is not being loaded see error :
Loading failed for the <script> with source “http://example.com/dev/pub/static/version1525976399/frontend/Sm/market/en_GB/requirejs/require.js”. dev:20 Loading failed for the <script> with source “http://example.com/dev/pub/static/version1525976399/frontend/Sm/market/en_GB/mage/requirejs/mixins.js”. dev:21 TypeError: require.config is not a function[Learn More] I have tried following command :
php -d memory_limit=5G bin/magento setup:di:compile For Deployment: php -d memory_limit=5G bin/magento setup:static-content:deploy But it's not helped. How to resolved it ?
requirejs, Try to clean thepub/staticcontent then run :php bin/magento setup:static-content:deploy -fif it doesn't work, please post you code to how you included your js !