-
-
Notifications
You must be signed in to change notification settings - Fork 210
Closed as duplicate of#416
Description
Describe the bug
if the project under dir which name includes '(1)', auto-imports can't scan the configured dirs.
project dir: c:\work\WebDesignerProject1(1)\WebDesignerProject1
// c:\work\WebDesignerProject1(1)\WebDesignerProject1\vite.config.ts
cosnt default defineConfig(() => {
//...
AutoImport({
dir: ['./src/stores']
}),
))
// c:\work\WebDesignerProject1(1)\WebDesignerProject1\src\stores\app.ts
export function useAppStore() {
return { version: '1.0' }
}
<script setup lang="ts">
// c:\work\WebDesignerProject1(1)\WebDesignerProject1\src\components\page.vue
const store = useAppStore() // ReferenceError: useAppStore is not defined
</script>
Reproduction
project under dir which name includes '(1)'
System Info
windows 10
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Metadata
Metadata
Assignees
Labels
No labels