<script setup lang="ts">
console.log(dummy) // this works
</script>
<template>
{{ _.dummy }} this doesn't work
</template>
Describe the bug
When using unplugin-auto-import in a Vite project to automatically import dependencies, the _.isArray function from a file (src/utils/lodash.ts) is working correctly in the script context but fails in the template.
The issue manifests as follows:
In the script section ( Githubissues.
Githubissues is a development platform for aggregating issues.
Note
Describe the bug
When using unplugin-auto-import in a Vite project to automatically import dependencies, the
_.isArray
function from a file(src/utils/lodash.ts)
is working correctly in the script context but fails in the template.The issue manifests as follows:
In the script section ( Githubissues.