Skip to content

Commit 1b5e9d2

Browse files
prevent ts-node import error of untyped canvas module
1 parent e357136 commit 1b5e9d2

File tree

1 file changed

+1
-1
lines changed
  • examples/examples-nodejs/commons

1 file changed

+1
-1
lines changed

examples/examples-nodejs/commons/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import '@tensorflow/tfjs-node';
44

55
// implements nodejs wrappers for HTMLCanvasElement, HTMLImageElement, ImageData
6-
import * as canvas from 'canvas';
6+
const canvas = require('canvas')
77

88
import * as faceapi from '../../../src';
99

0 commit comments

Comments
 (0)