[英]Module not found: Can't resolve 'heatmap-calendar-react'
I've created a component that worked fine in my local App, but I'm trying to get it work on npm and I am getting this error: 我创建了一个在本地应用程序中正常运行的组件,但是我试图使其在npm上正常工作,并且出现此错误:
./src/App.js
Module not found: Can't resolve 'heatmap-calendar-react' in
'C:\Users\account\app\src'
Could somebody please take a look at my repository and help me understand what the issue may be? 有人可以看看我的存储库,并帮助我了解问题的根源吗?
https://github.com/willfretwell/heatmap-calendar-react https://github.com/willfretwell/heatmap-calendar-react
Any help would be greatly appreciated. 任何帮助将不胜感激。
在根目录下添加index.js
,并使其导入/导出/src/index.jsx
解决了,我在主声明中有一个错字。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.