Error overlay and development server middleware for Vue CLI that displays runtime errors and build warnings in browser overlays during development
npx @tessl/cli install tessl/npm-vue--cli-overlay@5.0.0Vue CLI Overlay is a placeholder package in the Vue CLI ecosystem. This package contains no implementation - it serves as a dependency marker for @vue/cli-service. The actual error overlay functionality is provided by webpack-dev-server's built-in client overlay feature, which is configured and managed by @vue/cli-service during development.
npm install @vue/cli-overlay (typically installed as part of Vue CLI)Important: This package has no exports and cannot be imported directly.
// ❌ These imports will fail - the package is empty
// const overlay = require("@vue/cli-overlay");
// import overlay from "@vue/cli-overlay";
// ✅ Overlay functionality is configured through Vue CLI service
// No direct imports are needed or possibleNote: The package contains no implementation whatsoever. The src/index.js file is completely empty, and there is no dist/client.js file to import.
The @vue/cli-overlay package cannot be used directly as it contains no implementation. The error overlay functionality is built into webpack-dev-server and configured by @vue/cli-service.
Overlay Configuration (handled by Vue CLI service, not this package):
// vue.config.js - configures webpack-dev-server overlay
module.exports = {
devServer: {
overlay: {
warnings: true, // Show webpack warnings in browser
errors: true // Show webpack errors in browser
}
}
}Example Error Scenarios that trigger webpack-dev-server's overlay:
// Compilation errors trigger the overlay
import { nonExistentExport } from './missing-module';
// Runtime errors during development
function buggyFunction() {
throw new Error('This will appear in the webpack overlay');
}
// Syntax errors in source code
const malformed = {
property: value // Missing quotes - webpack compilation error
};Note: The overlay functionality comes from webpack-dev-server, not from this package.
Important: This package provides no functionality itself. It exists only as a placeholder in the Vue CLI ecosystem:
This package serves as a placeholder and dependency marker within the Vue CLI ecosystem.
// No API exists - this package is completely empty
// src/index.js contains no code (0 bytes)
// No exports, functions, or classes are availableThe actual overlay functionality is configured through webpack-dev-server options, managed by @vue/cli-service.
// Webpack dev server overlay configuration (handled by @vue/cli-service)
interface WebpackOverlayOptions {
warnings?: boolean; // Show webpack compilation warnings in overlay
errors?: boolean; // Show webpack compilation errors in overlay
}
// Configured in @vue/cli-service, not this package
type OverlayConfig = boolean | WebpackOverlayOptions;This package exists only as a dependency marker in @vue/cli-service/package.json. It provides no functionality itself.
The actual overlay configuration happens in @vue/cli-service/lib/commands/serve.js:
// Real implementation in @vue/cli-service (not this package)
{
client: {
overlay: isProduction
? false
: { warnings: false, errors: true }
}
}The overlay works with Vue CLI's editor integration, but this integration is handled by @vue/cli-service:
// Editor integration in @vue/cli-service (comment mentions this package)
// "this works with vue-devtools & @vue/cli-overlay"
app.use('/__open-in-editor', launchEditorMiddleware(/* ... */));Note: The comment in @vue/cli-service references this package, but the actual functionality comes from webpack-dev-server and launch-editor-middleware.
// This package provides no types - it's empty
// Overlay types are part of webpack-dev-server configuration
// Webpack dev server overlay options (configured by @vue/cli-service)
interface WebpackClientOverlayOptions {
warnings?: boolean; // Show webpack warnings
errors?: boolean; // Show webpack errors
}
// Vue CLI devServer configuration type
type VueDevServerOverlay = boolean | WebpackClientOverlayOptions;The webpack-dev-server overlay (not this package) automatically handles and displays:
When errors occur, webpack-dev-server displays them in a full-screen overlay with:
Note: All error handling is provided by webpack-dev-server's built-in overlay client, not by this package.