Skip to content

Can not force importing face-api.esm.js #61

Answered by vladmandic
sakhovski asked this question in Q&A
Discussion options

You must be logged in to vote

I can not force importing face-api.esm.js in my TS-class like this:
import * as faceapi from '@vladmandic/face-api/dist/face-api.esm.js';

can you describe what happens in more details? that should work just fine
especially since import * as faceapi from '@vladmandic/face-api/'; simply points to the same file anyhow

breaks in my tests running in the Node (which imports face-api.node.js) with following Error:
Cannot find module '@tensorflow/tfjs-node' from 'face-api.node.js'

that is normal and fully documented - face-api.node.js,
see section 3.1 in the readme: https://github.com/vladmandic/face-api#31-import-commonjs

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sakhovski
Comment options

@vladmandic
Comment options

Answer selected by vladmandic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants