React with Typescript shows black boxes
i-penr opened this issue · 1 comments
i-penr commented
Hi, I am using React.js (create-react-app) with typescript and I have encountered this bug, when I create a calendar and deploy the site, the whole calendar is completely black.
I have checked everything, even with cal.paint({})
(basically, the quick start example in the docs) the whole svg is black.
The text is rendered, it can be seen if the calendar is selected. Also, when data is used with scale.color, the colors are visible, but the background is black. Also, it has nothing to do with the theme option.
Thanks!
i-penr commented
Well, I feel stupid now. I didn't import the css... The problem is solved now haha. I think it should have been clearer in the docs, though.