Vben Admin: Extending with Vue Flow for Advanced Flow Editing
Posted on
Adding Vue Flow to Your Project
This guide will walk you through integrating Vue Flow into your Monorepo project, including installing dependencies, setting up routing, and creating an editable flow page.
Installing Dependencies
Follow these steps to ensure a smooth installation of Vue Flow:
Step 1: Clean Existing Dependencies
Start by cleaning your current dependencies to avoid conflicts:
1 2 3 4 5
# Run in the root directory of your project pnpm clean
# Remove node_modules rm -rf node_modules
Step 2: Clean PNPM Cache
Clear the cache to prevent issues with outdated or corrupted packages:
1
pnpm store prune
Step 3: Reinstall All Dependencies
Reinstall the dependencies to ensure your lockfile is up to date:
1
pnpm install
Step 4: Install Vue Flow Dependencies
Navigate to the correct subproject directory and install the necessary Vue Flow packages:
1 2 3 4 5 6 7 8
# Enter the subproject directory cd packages/web-antd