Tooltip plugin, and others are not importable
spookylukey opened this issue · 2 comments
spookylukey commented
The docs say this for NPM:
The plugin is built-in in the core CalHeatmap, just import the module with
import { Tooltip } from 'cal-heatmap';
However, this doesn't appear to work. Typescript says Module '"cal-heatmap"' has no exported member 'Tooltip'
, the package.json doesn't mention the plugins, and cal-heatmap.esm.js
file doesn't mention them at all.
Is this a package.json error?
Thanks
wa0x6e commented
4.1.0
has been released with the fix.
Use
import Tooltip from 'cal-heatmap/plugins/Tooltip';
spookylukey commented
Thanks again!