I seem to be facing an issue while breaking down some large components into smaller ones. One of the new components I created appears mostly empty:
<div>
test
</div>
<script>
export default {
data() {}
}
</script>
In my parent component, I include this new component using <my-new-component />
(which works fine with all other components).
In the script tag of the parent component, I have the following code:
import MyNewComponent from "path"; // everything seems correct when checking in the IDE
export default {
components: {
MyNewComponent
}
}
However, I keep encountering the error message
Uncaught SyntaxError: import not found: default
within the MyNewComponent.vue
file.
This is the same setup I use for all my other components. What could I possibly be missing? I am working on Vue 2.7