youzan / zan-proxy

An extensible proxy for PC/Mobile/APP developer

Home Page:https://youzan.github.io/zan-proxy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn dev:ui 命令报错

sunchenguang opened this issue · comments

执行yarn dev:ui会报下面的错误,外面的node_modules和webui下的node_modules都已经装好了。导致无法在本地调试webui页面。

但是 yarn dev:cli, yarn dev:gui命令都是正常的。

ERROR in /Users/sunchenguang/node_modules/element-ui/types/card.d.ts
1:39 Cannot find module 'vue'.
  > 1 | import { VNode, VNodeDirective } from 'vue'
      |                                       ^
    2 | import { ElementUIComponent } from './component'
    3 |
    4 | export interface CardSlots {
ERROR in /Users/sunchenguang/node_modules/element-ui/types/collapse-item.d.ts
1:23 Cannot find module 'vue'.
  > 1 | import { VNode } from 'vue'
      |                       ^
    2 | import { ElementUIComponent } from './component'
    3 |
    4 | export interface CollapseItemSlots {

是否是升级了element-ui?element-ui 1.3.6版本下应该是没有自带 types 类型文件的

是它自动找到我用户主目录里的element-ui了(不知道为什么会找到这里),在这里/Users/sunchenguang/node_modules/element-ui/,把这里删掉,就OK了。

感谢大佬