element-plus/DEV_FAQ.md

28 lines
531 B
Markdown
Raw Normal View History

# DEV FAQ
Here are the problems that are easy to encounter in development.
## If you encounter dependency related issues
```bash
2021-09-26 01:29:07 +08:00
pnpm i
```
## Link local dependencies
```bash
# get dist
pnpm build
cd dist/element-plus
# set cur element-plus to global `node_modules`
pnpm link --global
# for esm we also need link element-plus for dist
pnpm link --global element-plus
# go to your project, link to `element-plus`
cd your-project
pnpm link --global element-plus
```
> More info see [link | pnpm](https://pnpm.io/zh/cli/link).