SeanSobey / ChartjsNodeCanvas

A node renderer for Chart.js using canvas.
MIT License
230 stars 75 forks source link

Build error #89

Closed bellus93 closed 2 years ago

bellus93 commented 2 years ago

With this versions "chart.js": "^3.5.1", "chartjs-node-canvas": "^4.0.1",

"typescript": "4.4.4"

if i try to build my project I got this error

node_modules/chartjs-node-canvas/dist/index.d.ts:1:23 - error TS2688: Cannot find type definition file for 'resemblejs'.

///

SeanSobey commented 2 years ago

Thanks for reporting this. Very strange issue, the type definition for resemblejs (dev dependancy used only in tests) has a declare global that causes typescript to add a /// <reference types="resemblejs" /> to the main index file...weird. This is fixed and will be pushed up in the next release.