vue-auto-import-checker

Check if the used tags are all registered within your components.d.ts
15,696 4
Install
npm install vue-auto-import-checker
Latest Version:2.0.3
Older releases:3
License:MIT
Last Updated:Oct 10, 2026
Links: GitHub  ·  npm
Maintainer: marcelwagner

Vue auto-import checker

npm: vue-auto-import-checker

License npm version GitHub npm downloads NPM Unpacked Size

Description

Sometimes your vue-Repo is a mess, especially if you have a large (mono)repo, and you switch, mid-development to unplugin-vue-components (or similar auto-import setups). This CLI tool checks if every component tag used in your Vue templates is properly registered in components.d.ts.

You can configure which tag sets the checker should handle as if they were known, like Vuetify, VueUse, Quasar, Nuxt, Naive UI or PrimeVue (as it is described in the secion Known Frameworks). HTML, Vue, VueRouter, and SVG tags are known by default, but you can remove them from the known list if needed.

It is also possible to provide your own list of known tags by providing a custom-tags-file in JSON format or a simple list of tags (as it is described on command-options).

Why?

Why does this tool exist?

Because of migration from older codebases and toolsets to modern ones, especially in larger (mono)repos.

My experience as a developer showed me that the decision to use the top end toolset does come one day and then the migration is oftentimes not a recommendation from the customer, but from the developer team. That means the migration is not paid work. So it is not made as a priority. Using something like the unplugin for your vue project is recommended. But the migration is not always easy. You have to change your codebase, and you have to make sure that you do not forget any tags. This tool helps you with that. It checks your codebase for unknown tags and tells you where they are. So you can find and fix them.

Node

We recommend using:

  • Latest Node.js 24.x LTS (minimum required 20.19.1)

Other versions might work but are not tested.

Vue

The supported Vue files should use Single-File Components (also known as *.vue files, abbreviated as SFC). That means the tool is assuming to have files in your project path that are looking like this:

<script>
/* Typescript or Javascript content */
</script>

<template>
  <!-- HTML content -->
</template>

<style>
/* CSS content */
</style>

The tool also assumes to have at minimum the template section in your files.

Installation

Use the package as a globally installed CLI tool (for example for multiple projects).

 npm i vue-auto-import-checker -g

Use the package as a locally installed dev-dependency (for example in the ci/cd pipeline).

 npm i vue-auto-import-checker -D

Usage

To use the package without installation.

 npx vue-auto-import-checker <options>

Use the implemented help to display all the options:

 npx vue-auto-import-checker -h

It is possible to use a config-file with all your command-options.

Lookup the command-options.

But you can also start with an example from our cookbook.

Known Frameworks

Currently, we support:

  • Vuetify >= 3.8.4
  • VueUse >= 13.6.0
  • Quasar >= 1.16.0
  • Nuxt >= 4.2.1
  • Naive UI >= 2.43.2
  • PrimeVue >= 4.5.3

Other versions might work but are not tested.

If you want to use a framework version that is not yet supported, you can use the importer tools to provide your own list of tags.

We are working on more.

CI/CD Integration

This tool is CI-friendly

  • If unknown tags are detected, the CLI will exit with a non-zero status code (if the --output-format text is configured)
  • If no unknown tags are found, it will exit successfully with code 0.

This allows you to easily break builds when auto-imports are missing.

Security

Look into the file security in the docs folder.

Importers

Use a tag list from the specific version that your project is using by using a specific importer.

Every importer has its own explanation file so you can look up your specific use case.

Contributors

Thanks for the contribution of code, ideas and motivation to:

GitHub Profile GitHub Profile GitHub Profile

Thanks to Matthias for the idea.

Spezial thanks to my family, to my wife Jiyeop and to my son Ryan.

Feedback & Contributions

If this tool helps you out, consider leaving a star on the repository — it really motivates further development!

Found a bug? Something not working as expected?
Please open an issue so it can be fixed quickly.

Missing a feature you’d love to see?
Feature requests are very welcome as well!

Thanks for helping make Vue Auto-Import Checker better for everyone! 🙌

Related Packages

@vuetify/unplugin-styles

Vuetify styles unplugin for Vite, Nuxt, Webpack, and more

143,493
@bg-dev/nuxt-naiveui

Unofficial Naive UI module for Nuxt

144,316 187
unplugin-vue-prop

Add import define props type support for Vue3 script-setup and lang is typescrip...

1,105 2
vuetify-nuxt-module

Zero-Config Nuxt Module for Vuetify

1,965,670 287
nuxt-quasar-vite

Quasar Framework UI for Nuxt

2,482 31

Version History

Version Released License
2.0.3 MIT
2.0.2 MIT
2.0.1 MIT
2.0.0 MIT
1.2.3 MIT