After updating chart.js from 4.2.0 to 4.2.1 I started getting this TypeScrip error at build:  I use v2.0.0 of the zoom plugin. Reverting chart.js back to 4.2.0 solved the problem