So the following code works locally without this error appearing. However, when I deploy to heroku, with this code:
const profPipeLine = [ {