Flow shows error with app.min.js

the function just returns the message payload.

msg.payload = 
{
    "data":msg.payload
}
return msg;

I have not changed anything from the solution code posted in Real-Time Data Chart with ChartJs Streaming - #2 by Mathieu. I just imported it.
I have downloaded the javascripts files and put in the httpStatic folder.

<script src="/chart.min.js"></script>
<script src="/hammer.js"></script>
<script src="/chartjs-plugin-zoom.min.js"></script>
<script src="/chartjs-adapter-date-fns.bundle.min.js"></script>
<script src="/chartjs-plugin-streaming.js"></script>