I'm diving into the world of TypeScript and Vue 3 JS. I created a single-file-component and now I'm trying to implement a Bootstrap 5 modal. However, my VSCode is showing an error related to the declared variable type. The error message reads:
"Modal" refers to a value, but is being used here as a type. Did you mean "type of modal"?
<script setup lang="ts">
import { Modal } from "bootstrap";
let modal: Modal = null;
...
</script>
I installed bootstrap via npm along with all JS types using:
npm install --save-dev @types/bootstrap
Any ideas on how to resolve this issue?