首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >vue-styleguidist不提供服务,因为:尝试导入错误:'h‘不是从'vue’导出的(作为‘Vue’导入)

vue-styleguidist不提供服务,因为:尝试导入错误:'h‘不是从'vue’导出的(作为‘Vue’导入)
EN

Stack Overflow用户
提问于 2022-03-06 08:33:44
回答 1查看 153关注 0票数 2

我正在尝试运行vue-styleguidist server,但是我得到了这个错误:

代码语言:javascript
复制
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

EN

回答 1

Stack Overflow用户

发布于 2022-04-07 13:45:38

尝试将reactreact-dom更新为版本17 (如果缺少则添加到perrDependencies )

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71368772

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档