Skip to content

Commit 9ceacd6

Browse files
committed
docs: add missing step for Nuxt
1 parent 219c7ed commit 9ceacd6

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/faq/integration.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,23 @@ There are a few steps to do:
3232
import('/@vite-plugin-checker-runtime-entry')
3333
</script>
3434
```
35-
3. Import component above in the root component of your Nuxt project to have a global error overlay.
35+
3. Add vite-plugin-checker to `vite.plugins` in `nuxt.config.ts`.
36+
37+
```ts
38+
import { checker } from 'vite-plugin-checker'
39+
// https://nuxt.com/docs/api/configuration/nuxt-config
40+
export default defineNuxtConfig({
41+
vite: {
42+
plugins: [
43+
checker({
44+
vueTsc: true,
45+
}),
46+
],
47+
},
48+
})
49+
```
50+
51+
4. Import component above in the root component of your Nuxt project to have a global error overlay.
3652

3753
```vue
3854
<script setup lang="ts">
@@ -49,6 +65,8 @@ There are a few steps to do:
4965
</template>
5066
```
5167

68+
You are all set in both development and build mode.
69+
5270
#### Enable vite-plugin-checker as a built-in Nuxt functionality
5371

5472
::: warning

0 commit comments

Comments
 (0)