Open mrleblanc101 opened 1 year ago
Looking at the type definition, I don't see how it's possible to use a preset in Nuxt.
Looking at the Pinia doc, I found that they have their own way of dealing with autoImports: https://pinia.vuejs.org/ssr/nuxt.html#auto-imports
But why would I wan't to define everything I want to autoImport, isn't the point of Nuxt 3 to auto detect the function used in my code ? I don't want to specify every single function to autoImport in my nuxt.config.js 🤔
From what I understand, the preset exist from this PR: https://github.com/antfu/unplugin-auto-import/pull/60 I just don't see how to use it in Nuxt.
same as https://github.com/antfu/unplugin-vue-components/issues/657 , you can use vite.plugins reaplace the nuxt default imports
Describe the bug
I'm not sure how preset work, there is no real documentation on how to auto import everything from Pinia. I tried this, which looked logical from the doc:
But I get this type error:
Reproduction
.
System Info
Used Package Manager
yarn
Validations