A Vite plugin that suppresses the 'No match found for location with path' warning from vue-router during development. Version 2.0.0 is stable, with infrequent updates. It works by patching vue-router's internal warning suppressor to silence that specific warning when routes are dynamically added or refreshed. Only active in development mode, processes only vue-router files, and runs once at startup. Provides optional export of modified router file for debugging. Designed as a temporary fix until vue-router provides native support to disable the warning.
npm install vite-plugin-router-warnVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install and configure the plugin in a Vite project to suppress vue-router warnings.
No action needed; this is by design. The warning does not appear in production because vue-router does not show it in production builds.
Check compatibility when upgrading vue-router. The plugin may need an update if vue-router internals change.
Monitor vue-router changelog for 'suppressNoMatchWarning' or similar option. Then remove this plugin.
Ensure route additions happen before the initial page load, or reload the page after adding routes.
Run npm install vite-plugin-router-warn -D or yarn add vite-plugin-router-warn -D
Change to `import removeNoMatch from 'vite-plugin-router-warn'`
Invoke the plugin as a function: removeNoMatch()
No dependency data recorded yet.