Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scanDirs failed when project path includes '(1)' #550

Open
5 tasks done
forhot2000 opened this issue Jan 16, 2025 · 0 comments
Open
5 tasks done

scanDirs failed when project path includes '(1)' #550

forhot2000 opened this issue Jan 16, 2025 · 0 comments

Comments

@forhot2000
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant