I have fixed it by redeploying the static content:
rm -rf pub/static/* && bin/magento setup:static-content:deploy