Element UI FAQ
This page lists common issues and solutions when using Element UI.
Installation Issues
Installation Failed
Symptoms: npm install fails
Solutions:
- Check Node.js version, ensure >= 8.0.0
- Clear npm cache:
npm cache clean --force - Delete node_modules and package-lock.json, then reinstall
On-Demand Import Not Working
Symptoms: Bundle size still large
Solutions:
- Ensure .babelrc configuration is correct
- Check if babel-plugin-component is properly installed
Usage Issues
Component Styles Not Applied
Solutions:
- Make sure CSS is imported:
import 'element-ui/lib/theme-chalk/index.css'
Icons Not Displayed
Solutions:
- Import icon fonts:
import 'element-ui/lib/theme-chalk/fonts/element-icons.ttf'
Vue Version Issues
Not Compatible with Vue 3
Element UI only supports Vue 2. Use Element Plus for Vue 3.
Style Issues
Style Conflicts
Use more specific selectors or ::deep()
Performance Issues
Page Lag
For large datasets:
- Use pagination
- Avoid complex components in tables
Bundle Size Too Large
- Use on-demand import
- Remove unused components
Getting Help
- GitHub Issues: https://github.com/ElemeFE/element/issues
- Gitter: https://gitter.im/ElemeFE/element
