- 博客(9)
- 问答 (1)
- 收藏
- 关注
原创 vite做自己的组件库时使用npm link或者yalc add时出现Cannot read properties of null (reading ‘useRef‘)
在package.json里加入peerDependencies,将dependencies中的react包移入peerDependencies和devDependencies中。假如 a-components为你的组件库,那么就可以将react一类的包放入peerDependencies中,防止冲突。然后下载Rollup Plugin Exclude Dependencies From Bundle。用vite做组件库时,在别的项目里引用可能会出现类似的报错。在vite.config.ts中引入。
2024-10-24 14:22:22
274
2
原创 React项目,storybook实现通过git action动态部署到git page上
如果是默认一般都是在gh-pages的/(root)下面,要是存到了别的地方,记得改动pages。3.第三步:运行完成后到setting->pages 里设置自己部署需要的包存放的位置。4.最后显示这样就是成功啦~
2023-02-23 00:27:26
317
原创 React-Native 环境搭建-Intel x86 Atom_64 System Image安装问题
手动下载Intel x86 Atom_64 System Image
2022-09-05 11:09:58
1932
原创 解决echarts报There is a chart instance already initialized on the dom.错误
var pie = document.getElementById(id);let existInstance = echarts.getInstanceByDom(pie); //如果存在dispose掉 if (existInstance) { if (true) { echarts.dispose(existInstance); } } //立刻再次新建chartdomEle = echarts.init(pie, "light");...
2022-01-10 10:46:29
643
3
原创 python写一个监听代码,定时检查某个进程是否已经关闭,如果关闭则向邮箱发送邮件
python写一个监听代码,定时检查某个进程是否已经关闭,如果关闭则向邮箱发送邮件import osimport timeimport smtplib #smtp服务器from email.mime.text import MIMETextimport threadingdef timer_start(file_name): while True: p = os.popen('ps -ax | grep "python3"') #监听有什么在开启的python3
2021-09-03 14:26:26
554
原创 Lunix下MySQL的安装,报错ERROR1698(28000):Access denied for user root@localhost解决方法
配置了一下午太头疼了,记录一下,有借鉴:https://blog.youkuaiyun.com/r527665047/article/details/107056941/https://blog.youkuaiyun.com/m0_37781149/article/details/103129767?utm_medium=distribute.pc_relevant_download.none-task-blog-baidujs-1.nonecase&depth_1-utm_source=distribute.pc_
2021-02-05 19:33:07
289
空空如也
nextjs使用@antv/larkmap报错
2024-07-16
有没有人用echart react写仪表盘只能显示出字显示不出圈
2021-08-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人