2021-09-22 18:41:32 +08:00
|
|
|
# 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
|
2021-09-22 18:41:32 +08:00
|
|
|
```
|
2021-09-28 11:00:09 +08:00
|
|
|
|
|
|
|
## 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
|
|
|
|
```
|
|
|
|
|
2021-09-30 19:23:58 +08:00
|
|
|
> More info see [pnpm link](https://pnpm.io/cli/link).
|
2021-11-04 10:04:38 +08:00
|
|
|
|
|
|
|
## Theme
|
|
|
|
|
|
|
|
We should not write Chinese comments in scss files.
|
|
|
|
|
|
|
|
It will generate warning `@charset "UTF-8";` in the header of css file when built with vite.
|
|
|
|
|
|
|
|
> More info see [#3219](https://github.com/element-plus/element-plus/issues/3219).
|