Skip to content

v2 and v3 schema is not bundled in the Vite plugin #1117

@KTrain5169

Description

@KTrain5169

Build tool

Vite

Where do you see the problem?

  • In the browser
  • In the terminal

Describe the bug

In the Vite plugin's package, the manifest.schema.json references the Manifest v2 and Manifest v3 schema, which is not included in the package.

Reproduction

I use VSCode, which has support for linting JSON files according to their schema.

  1. Create a Vite project that uses @crxjs/vite-plugin.
  2. Paste this in as the manifest:
{
    "$schema": "./node_modules/@crxjs/vite-plugin"
}
  1. JSON file should now have a warning for unlocatable schemas.

Logs

System Info

envinfo --system --npmPackages @crxjs/vite-plugin --binaries --browser
System:
    OS: Windows 11 10.0.26200
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i5-1334U
    Memory: 2.89 GB / 15.69 GB
  Binaries:
    Node: 22.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 11.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.11.1 - C:\Users\KT\AppData\Local\pnpm\pnpm.CMD
    bun: 1.3.3 - C:\Users\KT\.bun\bin\bun.EXE
  Browsers:
    Chrome: 144.0.7559.133
    Edge: Chromium (140.0.3485.54)
    Firefox: 147.0.3 - C:\Program Files\Mozilla Firefox\firefox.exe
  npmPackages:
    @crxjs/vite-plugin: ^2.3.0 => 2.3.0

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions