Registry /
web-framework / vite-plugin-graphweaver
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import graphweaver from 'vite-plugin-graphweaver'
✗ const graphweaver = require('vite-plugin-graphweaver')
Plugin is ESM-only; CommonJS require not supported.
GraphweaverPluginConfig
✓ import { GraphweaverPluginConfig } from 'vite-plugin-graphweaver'
✗ import GraphweaverPluginConfig from 'vite-plugin-graphweaver'
Named export for TypeScript config types.
graphweaverPlugin
✓ import { graphweaverPlugin } from 'vite-plugin-graphweaver'
✗ import graphweaverPlugin from 'vite-plugin-graphweaver'
Named export for the plugin function; default export is also the same function.
Demonstrates adding the Graphweaver Vite plugin to a vite.config.ts file.
// vite.config.ts
import { defineConfig } from 'vite';
import graphweaver from 'vite-plugin-graphweaver';
export default defineConfig({
plugins: [
graphweaver({
// Optional configuration
// adminUi: { enabled: true },
}),
],
});
Errors
Common errors & fixes
Error: Cannot find module 'vite-plugin-graphweaver'
Package not installed or Vite version mismatch.
fixInstall the package: npm install vite-plugin-graphweaver --save-dev
TypeError: graphweaver is not a function
Incorrect import or usage in vite.config.js.
fixUse import graphweaver from 'vite-plugin-graphweaver' and call it as graphweaver({}). ERR_REQUIRE_ESM: require() of ES Module not supported
Using CommonJS require() to import an ESM-only package.
fixSwitch to import syntax or use dynamic import().
Audit
Dependencies
viterequiredpeer dependency required for plugin to function
@azure/msal-browseroptionalmoved from peer to direct dependency in v2.22.0 for pnpm compatibility
@azure/msal-reactoptionalmoved from peer to direct dependency in v2.22.0 for pnpm compatibility