I am using the JavaScript API within a Vue CLI project. I get the following errors when the attribution, zoom, and pop up widgets load. These errors popup only when I use the the dev server that is provided with Vue CLI.

The above errors go away when the project is built and served on a web sever like IIS/Apache.
I understand this is a MIME type issue. What can I do to get these errors go away in my dev environment?