Skip to content

VDT0001: Inspect Context Unavailable

Message

Vite inspect context is not available for this DevTools context.

Cause

A vite:inspect:* RPC function was called in a DevTools context that did not register the Vite inspect collector.

Example

Calling vite:inspect:get-modules-list while only the base Vite metadata RPC functions are registered triggers this error.

Fix

Register the Vite UI plugin with inspect collection enabled before calling vite:inspect:* RPC functions.

Source

Released under the MIT License.