vite-plugin-vue-devtools is an official Vite plugin designed to integrate Vue DevTools directly into a development server, significantly enhancing the developer experience for Vue.js applications. It provides real-time inspection of component hierarchies, state management, routing, and performance metrics, all accessible within the browser's developer tools. The current stable version is 8.1.1, and the project exhibits an active release cadence with frequent updates for bug fixes and feature enhancements, indicating strong ongoing support from the Vue.js core team. Its key differentiator lies in its seamless, officially supported integration within the Vue ecosystem, offering a robust and consistent debugging environment for projects powered by Vite.
npm install vite-plugin-vue-devtoolsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to integrate `vite-plugin-vue-devtools` into a Vite configuration for a Vue 3 project, enabling the DevTools overlay in development mode. It also includes the standard `@vitejs/plugin-vue` plugin for completeness.
For Vue 2 projects, install `vite-plugin-vue-devtools` v6 or directly use the browser extension for Vue DevTools v6. Ensure your `package.json` specifies compatible versions.
Ensure you are using `vite-plugin-vue-devtools` version 8.0.4 or higher if you are developing with Node.js v25 or newer to avoid compatibility issues.
Upgrade to `vite-plugin-vue-devtools` version 8.0.2 or newer immediately to mitigate the security vulnerability associated with the `ip` package.
If using `vite-plugin-html` or similar, ensure `vite-plugin-vue-devtools` is registered *before* `vite-plugin-html` in your `vite.config.ts` plugins array.
Ensure your project's `vite` dependency satisfies the peer dependency range specified by `vite-plugin-vue-devtools`. Update or downgrade Vite if necessary.
Call the plugin function in your `vite.config.ts`: ```typescript plugins: [ VueDevTools(), // Corrected: call the function vue(), ], ```
Ensure the package is installed as a dev dependency: `npm install -D vite-plugin-vue-devtools` or `yarn add -D vite-plugin-vue-devtools`. Verify the import statement `import VueDevTools from 'vite-plugin-vue-devtools'` is correct in your `vite.config.ts`.
If you are using `vite-plugin-html`, ensure `vite-plugin-vue-devtools` is registered before `vite-plugin-html` in your `vite.config.ts`. Also, check the official troubleshooting guide.
This is a known issue (e.g., Cloudflare Workers issue #11063). A temporary workaround might be to disable `vite-plugin-vue-devtools` during development with such configurations, or monitor the respective GitHub issues for updates and patches.