Recently, i also faced this issue, i followed the below commands, then it works fine for me
dfx stop
dfx start --clean --background
dfx deploy