I met this error when running npm run build although I do not make any changes in the source code
As also written in this topic before:
Simply pull the latest code from Github and it should then work again fine.