vuejs history mode routing
From the error:
Refused to execute script from '{URL}/catalog/[product-name]/p/dist/build.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Look somewhere in your HTML files, you probably have a script tag as such:
<script src="dist/build.js"></script>
When its path should be absolute, like:
<script src="/dist/build.js"></script>
Notice the /
added before dist
.