In developer mode, the code runs fine but the production build breaks with this error message. I put back the earlier version which I could build a running version from. But