face-api.js icon indicating copy to clipboard operation
face-api.js copied to clipboard

Chrome extension manifest v3 error

Open dev-coco opened this issue 2 years ago • 0 comments

Uncaught (in promise) Error: getEnv - environment is not defined, check isNodejs() and isBrowser()

my code in extension background

importScripts(
  'face-api.js'
)

It can be used normally in v2, but the v3 version cannot be used.

dev-coco avatar Dec 27 '22 03:12 dev-coco