addon-info使用问题
来源:8-
低级前端开花工程师
2020-03-25

点击 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.
112020-03-26
相似问题