@kkoroleva,
You can import CanvasJS from @canvasjs/charts package directly in this case. Please find the code-snippet below.
import * as CanvasJS from '@canvasjs/charts';
Please check out CanvasJS npm package from this link.
—
Ananya Deka
Team CanvasJS