[Vuejs]-Uncaught SyntaxError: The requested module does not provide an export named

0👍

Could you try something like this ?

Create a single file that will contain your html / css and js.

tileHeader.vue :

<template>
<!-- Your view.html  -->
</template>

<script>
export default {
  name: 'tileHeader',
}
</script>

<style scoped>
</style>

Since the file has a export default, you’ll be able to import it in another file

Add to main.js :

import tileHeader from "./components/tileHeader.vue";

Leave a comment