Skip to content

docs: add tip for when using auto imports #4112

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

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/content/1.getting-started/2.installation/2.vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ components.d.ts

::

::tip
If your project was initialized with the official Vue.js starter, you want to make sure that the build command performs type-checking *after* the type declaration files are generated.
Otherwise, your build script will fail in fresh environments, such as CI pipelines.


```json [package.json]
- "build": "run-p type-check \"build-only {@}\" --",
+ "build": "run-s \"build-only {@}\" type-check --",
```

::

#### Use the Nuxt UI Vue plugin in your `main.ts`

```ts [main.ts]{3,14}
Expand Down