请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

addon-info使用问题

图片描述

点击 show info 出现这个错误
插件版本: “@storybook/addon-info”: “^5.3.17”,
"@types/storybook__addon-info": “^5.2.1”,

正在回答

1回答

同学你好 刚才搜索了这个问题 发现stroybook 中有和你一样问题的人,地址在这里:https://github.com/storybookjs/storybook/issues/7914   看起来像是版本 missmatch 的问题,你可以详细看看,他们提到了两个解决方案,你应该使用的是 yarn 对吗?你可以试试:

第一 删除 yarn.lock  和 node_modules,重新安装

upgraded from 5.2.3 -> 5.2.5 & faced this error; removing node_modules & yarn.lock fixed it

第二 emotion 库被安装了两次,删除或升级 emotion 库到一个统一的版本。

ad this issue and it was indeed a duplication issue with emotion. Upgrading our (pinned) emotion dependencies fixed the problem for us. I know that the emotion team is working on providing runtime warnings for these issues like react does.

NB! I didn't delete the yarn-lock so only got a minor change in that file.


1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号