Unable to access vue component from a jsp page

I’m trying to implement a vue component in my jsp page. I have tried to access a js file having import, export statement(s) using type=“module” to script tag and file has been successfully loaded and executed. but when executing the import statement in that js file, it’s returning below error in console :

Failed to load module script: The server responded with a non-JavaScript MIME type of “”. Strict MIME type checking is enforced for module scripts per HTML spec.

Below is my jsp code

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="module" src="../../../../js/serviceMap/packages/AssignList/index.js"></script>

Below is the piece of code in js file

import OpsAssignList from './src/AssignList.vue'

OpsAssignList.install = function install(Vue) {
  Vue.component(OpsAssignList.name, OpsAssignList)

export default OpsAssignList

Attached the image of browser console for reference