VDT0002: Inspect Target Not Found
Message
Vite inspect target "
{id}" was not found in{target}.
Cause
An inspect RPC query referenced a Vite instance or environment that the collector has not recorded.
Example
Calling vite:inspect:get-module-transform-info with an unknown { vite, env } query triggers this error.
Fix
Read vite:inspect:get-metadata first and pass one of the returned Vite instance IDs and environment names to follow-up inspect RPC calls.
Source
packages/vite/src/node/inspect/context.ts—getViteContext()andgetEnvContext()throw this when a query references an unknown inspect target.