{"id":22683,"library":"vite-plugin-graphweaver","title":"Vite Plugin Graphweaver","description":"A Vite plugin for integrating Graphweaver's admin UI into your project. Current stable version is 2.22.0, released monthly with patches. It is part of the Graphweaver ecosystem, a headless CMS built on GraphQL with support for PostgreSQL, MySQL, SQLite. Key differentiator: seamless integration with Graphweaver's admin panel via Vite. Requires Vite ^5.0.0 || ^6.0.0 || ^7.0.0 as a peer dependency.","status":"active","version":"2.22.0","language":"javascript","source_language":"en","source_url":"https://github.com/exogee-technology/graphweaver","tags":["javascript","graphql","gql","headless","cms","postgres","postgresql","mysql","sqlite","typescript"],"install":[{"cmd":"npm install vite-plugin-graphweaver","lang":"bash","label":"npm"},{"cmd":"yarn add vite-plugin-graphweaver","lang":"bash","label":"yarn"},{"cmd":"pnpm add vite-plugin-graphweaver","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for plugin to function","package":"vite","optional":false},{"reason":"moved from peer to direct dependency in v2.22.0 for pnpm compatibility","package":"@azure/msal-browser","optional":true},{"reason":"moved from peer to direct dependency in v2.22.0 for pnpm compatibility","package":"@azure/msal-react","optional":true}],"imports":[{"note":"Plugin is ESM-only; CommonJS require not supported.","wrong":"const graphweaver = require('vite-plugin-graphweaver')","symbol":"default","correct":"import graphweaver from 'vite-plugin-graphweaver'"},{"note":"Named export for TypeScript config types.","wrong":"import GraphweaverPluginConfig from 'vite-plugin-graphweaver'","symbol":"GraphweaverPluginConfig","correct":"import { GraphweaverPluginConfig } from 'vite-plugin-graphweaver'"},{"note":"Named export for the plugin function; default export is also the same function.","wrong":"import graphweaverPlugin from 'vite-plugin-graphweaver'","symbol":"graphweaverPlugin","correct":"import { graphweaverPlugin } from 'vite-plugin-graphweaver'"}],"quickstart":{"code":"// vite.config.ts\nimport { defineConfig } from 'vite';\nimport graphweaver from 'vite-plugin-graphweaver';\n\nexport default defineConfig({\n  plugins: [\n    graphweaver({\n      // Optional configuration\n      // adminUi: { enabled: true },\n    }),\n  ],\n});","lang":"typescript","description":"Demonstrates adding the Graphweaver Vite plugin to a vite.config.ts file."},"warnings":[{"fix":"Add pnpm overrides in package.json for @azure/msal-browser and @azure/msal-react to pin versions.","message":"In v2.22.0, msal packages were moved from peer to direct dependencies. If you use pnpm, you may need overrides to avoid duplicate versions.","severity":"breaking","affected_versions":">=2.22.0"},{"fix":"Update Vite to version 5, 6, or 7.","message":"Plugin requires Vite ^5.0.0 || ^6.0.0 || ^7.0.0. Using older Vite versions will cause import errors.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Use import syntax and ensure your project is configured for ESM.","message":"The plugin is ESM-only; CommonJS require() will fail with 'ERR_REQUIRE_ESM'.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install the package: npm install vite-plugin-graphweaver --save-dev","cause":"Package not installed or Vite version mismatch.","error":"Error: Cannot find module 'vite-plugin-graphweaver'"},{"fix":"Use import graphweaver from 'vite-plugin-graphweaver' and call it as graphweaver({}).","cause":"Incorrect import or usage in vite.config.js.","error":"TypeError: graphweaver is not a function"},{"fix":"Switch to import syntax or use dynamic import().","cause":"Using CommonJS require() to import an ESM-only package.","error":"ERR_REQUIRE_ESM: require() of ES Module not supported"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}