Installation
This guide will help you install and setup HyVue Gantt in your Vue 3 project.
Requirements
Before installing HyVue Gantt, ensure your project meets these prerequisites:
- Vue 3.5+ or higher
- TypeScript 5.0 or higher (recommended but optional)
- Node.js 16 or higher
- npm 7 or higher or yarn 1.22 or higher
Dependencies
HyVue Gantt relies on the following peer dependencies:
"peerDependencies": {
"@fortawesome/free-brands-svg-icons": "^6.7.1",
"@fortawesome/free-regular-svg-icons": "^6.7.1",
"@fortawesome/free-solid-svg-icons": "^6.7.1",
"@fortawesome/vue-fontawesome": "^3.0.8",
"@vueuse/core": "^12.0.0",
"date-holidays": "^3.23.14",
"dayjs": "^1.11.13",
"lodash-es": "^4.17.21",
"uuid": "^11.0.5",
"vue": "^3.5.13"
}
These dependencies will be installed automatically when you install HyVue Gantt, but you should be aware of them if you need to manage version conflicts or if you already use some of these libraries.
Installation Methods
Using npm
npm install hy-vue-gantt
Using yarn
yarn add hy-vue-gantt
Basic Setup
Global Registration
Add HyVue Gantt to your Vue application by registering it in your main entry file:
import { createApp } from 'vue'
import App from './App.vue'
import hyvuegantt from 'hy-vue-gantt'
const app = createApp(App)
app.use(hyvuegantt)
app.mount('#app')
Component Registration
Alternatively, you can import components individually:
import { GGanttChart, GGanttRow } from 'hy-vue-gantt'
export default {
components: {
GGanttChart,
GGanttRow
}
}
TypeScript Support
HyVue Gantt includes built-in TypeScript declarations. To get full TypeScript support, ensure your tsconfig.json
includes:
{
"compilerOptions": {
"types": ["hy-vue-gantt"]
}
}
What's Next?
After installation, you might want to:
- Check out our Quick Start Guide for your first Gantt chart
- Learn about Chart Configuration
- Explore Examples to see what's possible
Troubleshooting
If you encounter any installation issues:
- Ensure all peer dependencies are correctly installed
- Check that your Vue version is compatible
- Clear your package manager cache and node_modules
- Try with a fresh installation
For more help, visit our GitHub Issues page.