vue-ray is a utility designed for debugging Vue 3 applications by sending debugging information to the desktop Ray app. Currently at version 2.0.3, the package maintains an active release cadence, with notable updates including a major rewrite in v2.0.1. This rewrite transitioned the package to an ESM-first architecture and removed support for Vue 2 and Node.js versions below 18. It offers two primary integration methods: a global `RayPlugin` for application-wide configuration and a `raySetup()` composable for `<script setup>` contexts. The package's key differentiator is its seamless integration with the commercial Ray debugging application, providing a dedicated GUI for inspecting data, component lifecycle events, and errors, offering a richer debugging experience than traditional `console.log` methods.
npm install vue-rayVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates both global `RayPlugin` installation for app-wide settings and component-level `raySetup()` usage in a `<script setup>` component to send data, lifecycle events, and interactive messages to the Ray desktop debugger.
Migrate your application to Vue 3 or use `vue-ray` v1.x for Vue 2 projects.
Update your Node.js environment to version 18 or newer.
Use ES Module `import` syntax (`import { ... } from 'vue-ray';`). Ensure your project's build configuration correctly handles ESM modules.Always call `ray.value().<method>()` instead of `ray().<method>()`.
Upgrade to `vue-ray` v2.0.3 or higher to ensure `RayPlugin` is correctly exported and available.
Upgrade `vue-ray` to version 2.0.3 or newer to resolve the missing export.
Switch to ES Module `import` syntax: `import { RayPlugin } from 'vue-ray';`.Remember that `raySetup()` returns a Vue `Ref`. Access the debugging function via `ray.value()`, e.g., `ray.value().log('message')`.