美文网首页
create-react-app安装storybook报错typ

create-react-app安装storybook报错typ

作者: 心大的少年 | 来源:发表于2020-06-18 11:15 被阅读0次

报错typeError: args.flat is not a function是因为node的版本问题,需要升级一下node的版本,或者降低storybook的版本。
改变版本后我用npx -p @storybook/cli sb init还是出现了问题,后面改用npx -p @storybook/cli sb init --type react_scripts使用这个命令就可以了

相关文章

网友评论

      本文标题:create-react-app安装storybook报错typ

      本文链接:https://www.haomeiwen.com/subject/dulvxktx.html