我正在尝试运行vue-styleguidist server,但是我得到了这个错误:
Attempted import error: 'h' is not exported from 'vue' (imported as 'Vue').
@ ./node_modules/vue-styleguidist/lib/client/rsg-components/Preview/PreviewAsync.js
@ ./node_modules/react-styleguidist/lib/client/rsg-components/Playground/Playground.js
@ ./node_modules/vue-styleguidist/lib/client/rsg-components/PlaygroundAsync/PlaygroundAsync.js
@ ./node_modules/react-styleguidist/lib/client/rsg-components/Playground/index.js当我尝试使用vue-styleguidist build命令时,生成了与docs相关的文件,但是没有完成,只显示了组件的道具,而不是方法。
我使用的是Vue版本: 2.0,webpack版本: 4.44.1,styleguidist版本: 4.44.17
发布于 2022-04-07 13:45:38
尝试将react和react-dom更新为版本17 (如果缺少则添加到perrDependencies )
https://stackoverflow.com/questions/71368772
复制相似问题