mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
f26a801775
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
1.0 KiB
1.0 KiB
title | description |
---|---|
Auto Imports | Nuxt 3 adopts a minimal friction approach, meaning wherever possible components and composables are auto-imported. |
::callout In the rest of the migration documentation, you will notice that key Nuxt and Vue utilities do not have explicit imports. This is not a typo; Nuxt will automatically import them for you, and you should get full type hinting if you have followed the instructions to use Nuxt's TypeScript support. ::
Migration
- If you have been using
@nuxt/components
in Nuxt 2, you can removecomponents: true
in yournuxt.config
. If you had a more complex setup, then note that the component options have changed somewhat. See the components documentation for more information.
::callout
You can look at .nuxt/types/components.d.ts
and .nuxt/types/imports.d.ts
to see how Nuxt has resolved your components and composable auto-imports.
::