Closed mouni521 closed 8 months ago
There's an issue with typescript and legend. A fix is in progress (https://github.com/wa0x6e/cal-heatmap/issues/487), in the meantime, all you can do is disabled typescript with // ts-ignore
Thanks, it helps, but got the other error
Module not found: Error: Package path ./dist/plugins/CalendarLabel is not exported from package /Users/userName/projectName/node_modules/cal-heatmap
After I modified the exports field in package.json then solved it.
"./plugins/CalendarLabel": {
"import": "./dist/plugins/CalendarLabel.esm.js",
"require": "./dist/plugins/CalendarLabel.js"
}
./plugins/CalendarLabel -> ./dist/plugins/CalendarLabel
Now it works well.
Hi, I'm using Angular 16 with cal-heatmap v4.2.4. When I import the plugins Legend and CalendarLabel like this way:
and then I got the error below:
The other problem is when I add the code:
it returns me
does not exist in type 'Partial' problem also occurs in other plugin like CalendarLabel.
Is this a bug? Or could you tell who to fix it, thank you very much.