I have a Vue view, somethink like:
<script setup lang="ts">
import { firstItem } from "@/path/to/my/file";
onMounted(async () => {
let f1 = getFirstItem();
let f2 = getSecondItem();
});
As you can see, there is an Import for firstItem
, but I forgot to add an import for secondItem
.
My issue - Why such a code is passing npm run serve
successfully? In fact, the website does not work (as expeted).
How can I make npm run serve
to fail instead of this confusing scenario that I was sure everything is OK with my code, and was not aware to this error?
By The Way, npm run lint
DO show this error, but I do not remember to run npm run lint
bfore every npm run serve