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:
./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
Any help would be greatly appreciated.
在根目录下添加index.js
,并使其导入/导出/src/index.jsx
解决了,我在主声明中有一个错字。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.