I found the solution here on the forum. Thanks!
https://forum.strapi.io/t/wierd-code-on-npm-run-develop/14341/2