Error loading QML file

I finally fixed it. I had to redownload and reinstall all of plasma.
Basically I did sudo pacman -Scc
and then sudo pacman -S plasma dolphin konsole xdg-user-dirs packagekit-qt5 knewstuff

If I did the last command with doing sudo pacman -Scc then pacman would use the existing packages in the cache and it wouldn’t fix the issue.