or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

docs

index.md
tile.json

tessl/npm-vue--cli-overlay

Error overlay and development server middleware for Vue CLI that displays runtime errors and build warnings in browser overlays during development

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@vue/cli-overlay@5.0.x

To install, run

npx @tessl/cli install tessl/npm-vue--cli-overlay@5.0.0

index.mddocs/

Vue CLI Overlay

Vue 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.

Package Information

  • Package Name: @vue/cli-overlay
  • Package Type: npm
  • Language: JavaScript (placeholder only)
  • Installation: npm install @vue/cli-overlay (typically installed as part of Vue CLI)

Core Imports

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 possible

Note: The package contains no implementation whatsoever. The src/index.js file is completely empty, and there is no dist/client.js file to import.

Basic Usage

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.

Architecture

Important: This package provides no functionality itself. It exists only as a placeholder in the Vue CLI ecosystem:

  • Placeholder Package: Contains no implementation - src/index.js is empty
  • Dependency Marker: Listed as a dependency in @vue/cli-service/package.json
  • Webpack Dev Server Integration: Actual overlay functionality comes from webpack-dev-server's client.overlay option
  • Vue CLI Service Configuration: @vue/cli-service configures webpack-dev-server's overlay, not this package
  • Development-Only: webpack-dev-server overlay is only active during development mode

Capabilities

Package Purpose

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 available

Overlay Configuration

The 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;

Integration with Vue CLI

This package exists only as a dependency marker in @vue/cli-service/package.json. It provides no functionality itself.

Development Server Integration

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 }
  }
}

Editor Integration

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.

Types

// 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;

Error Handling

The webpack-dev-server overlay (not this package) automatically handles and displays:

  • Compilation Errors: Syntax errors, type errors, and other webpack build-time issues
  • Runtime Errors: JavaScript runtime exceptions during development (when enabled)
  • Webpack Warnings: Build warnings and deprecation notices from webpack
  • Hot Module Replacement Errors: Issues during HMR updates

When errors occur, webpack-dev-server displays them in a full-screen overlay with:

  • Error message and stack trace
  • File location and line numbers
  • Clickable links to open files in your editor (via @vue/cli-service's /__open-in-editor middleware)

Note: All error handling is provided by webpack-dev-server's built-in overlay client, not by this package.

Notes

  • This package is completely empty - src/index.js contains no code
  • No API exists - there are no functions, classes, or exports to use
  • Serves as placeholder - exists only as a dependency marker in @vue/cli-service
  • Overlay functionality comes entirely from webpack-dev-server's client overlay
  • Configuration is handled by @vue/cli-service through webpack-dev-server options
  • No direct usage possible - the package cannot be imported or used directly
  • Works with editor integration through @vue/cli-service's middleware, not this package