Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use in a lerna/create-react app project #5

Closed
ost12666 opened this issue Oct 13, 2020 · 23 comments
Closed

Can't use in a lerna/create-react app project #5

ost12666 opened this issue Oct 13, 2020 · 23 comments
Assignees
Labels
question Further information is requested

Comments

@ost12666
Copy link

ost12666 commented Oct 13, 2020

I am using the library in a TypeScript lerna module which is build with tsc and then bundled as part of a create-react-app. I had no issue with the original face-api but wanted the latest fdjs. I am using the npm module with npm install.

If I only do:

import * as faceapi from '@vladmandic/face-api'

I get a compile error:

Failed to compile
../face-detect-plugin/node_modules/@vladmandic/face-api/dist/face-api.js 344:47
Module parse failed: Unexpected token (344:47)
File was processed with these loaders:

  • ./node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    | } : T || {};
    |
    var E = g(f(T.entropy ? [x, w(e)] : x ?? y(), 3), _),

| F = new d(_),
| D = function () {

if I add:

import * as tf from '@tensorflow/tfjs'

before importing face-api then I get an error in the console:

Uncaught SyntaxError: Unexpected token '!'

If I look at the code I see this:

class MathBackendCPU extends !(function webpackMissingModule() { var e = new Error("Cannot find module '@tensorflow/tfjs-core'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()) {
constructor() {
super();
this.blockSize = 48;
this.firstUse = true;
this.data = new !(function webpackMissingModule() { var e = new Error("Cannot find module '@tensorflow/tfjs-core'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())(this, !(function webpackMissingModule() { var e = new Error("Cannot find module '@tensorflow/tfjs-core'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())());
}

@vladmandic
Copy link
Owner

What are your tsconfig.json and package.json?

Looks like I've compiled Face-API using newer ECMA standard that your project does not recognize. Original Face-API used ES2015 and I'm using ES2018.

If you're using TypeScript, you can try importing TS sources directly so it gets rebuild along your application:

import * as faceapi from '@vladmandic/face-api/src/index.ts' 

Or check docs on how to rebuild Face-API after modifying it's tsconfig.json and package.json to use same settings as your project.

npm install
npm run build
```

@ost12666
Copy link
Author

Thanks for the quick reply! Can I just change my tsconfig to use ES2018 instead?

@vladmandic
Copy link
Owner

Sure 😁

@ost12666
Copy link
Author

using es2018 I get a better error message now :)

../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Abs.js
Attempted import error: 'Abs' is not exported from '@tensorflow/tfjs-core'.

Questions:

  • Why can't it just work like the original face-api?
  • Why need to install both face-api and tfjs if tfjs is a dependency of face-api?
  • Why with the original face-api I don't need to import tfjs for it to compile?

Thanks

@ost12666
Copy link
Author

Actually the console have many more errors regarding not found modules:

log.js:24 [HMR] Waiting for update signal from WDS...
audio-plugin.ts:6 webgl
environment.ts:56 Platform browser has already been set. Overwriting the platform with [object Object].
setPlatform @ environment.ts:56
../face-detect-plugin/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/platforms/platform_browser.js @ platform_browser.ts:56
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/base_side_effects.js @ base_side_effects.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/face-detect-plugin.js @ face-detect-plugin.ts:2
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/App.tsx @ plugins.ts:44
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/index.tsx @ UserMediaControl.tsx:65
webpack_require @ bootstrap:784
fn @ bootstrap:150
1 @ index.tsx:7
webpack_require @ bootstrap:784
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
engine.ts:229 webgl backend was already registered. Reusing existing backend factory.
registerBackend @ engine.ts:229
(anonymous) @ tf-core.esm.js:17
../face-detect-plugin/node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js @ tf-core.esm.js:17
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/constraints.js @ constraints.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/exports_constraints.js @ exports_constraints.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/face-detect-plugin.js @ face-detect-plugin.ts:2
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/App.tsx @ plugins.ts:44
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/index.tsx @ UserMediaControl.tsx:65
webpack_require @ bootstrap:784
fn @ bootstrap:150
1 @ index.tsx:7
webpack_require @ bootstrap:784
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
Show 4 more frames
engine.ts:229 cpu backend was already registered. Reusing existing backend factory.
registerBackend @ engine.ts:229
(anonymous) @ tf-core.esm.js:17
../face-detect-plugin/node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js @ tf-core.esm.js:17
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/constraints.js @ constraints.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/exports_constraints.js @ exports_constraints.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/face-detect-plugin.js @ face-detect-plugin.ts:2
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/App.tsx @ plugins.ts:44
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/index.tsx @ UserMediaControl.tsx:65
webpack_require @ bootstrap:784
fn @ bootstrap:150
1 @ index.tsx:7
webpack_require @ bootstrap:784
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
Show 4 more frames
environment.ts:56 Platform browser has already been set. Overwriting the platform with [object Object].
setPlatform @ environment.ts:56
(anonymous) @ tf-core.esm.js:17
../face-detect-plugin/node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js @ tf-core.esm.js:17
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/constraints.js @ constraints.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/exports_constraints.js @ exports_constraints.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-layers/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/face-detect-plugin.js @ face-detect-plugin.ts:2
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/App.tsx @ plugins.ts:44
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/index.tsx @ UserMediaControl.tsx:65
webpack_require @ bootstrap:784
fn @ bootstrap:150
1 @ index.tsx:7
webpack_require @ bootstrap:784
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
Show 4 more frames
arithmetic_executor.ts:1 Uncaught Error: Cannot find module '@tensorflow/tfjs-core/dist/ops/ops_for_converter'
at webpackMissingModule (arithmetic_executor.ts:1)
at Module.../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/arithmetic_executor.js (arithmetic_executor.ts:1)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Module.../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/operation_executor.js (operation_executor.ts:1)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Module.../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/executor/graph_executor.js (graph_executor.ts:1)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Module.../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/executor/graph_model.js (graph_model.ts:1)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Module.../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/index.js (index.ts:1)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Module.../face-detect-plugin/node_modules/@tensorflow/tfjs/dist/index.js (index.ts:1)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Object.../face-detect-plugin/build/face-detect-plugin.js (face-detect-plugin.ts:2)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Object.../face-detect-plugin/build/index.js (index.ts:1)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Module../src/App.tsx (plugins.ts:44)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Module../src/index.tsx (UserMediaControl.tsx:65)
at webpack_require (bootstrap:784)
at fn (bootstrap:150)
at Object.1 (index.tsx:7)
at webpack_require (bootstrap:784)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)
at main.chunk.js:1
webpackMissingModule @ arithmetic_executor.ts:1
../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/arithmetic_executor.js @ arithmetic_executor.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/operation_executor.js @ operation_executor.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/executor/graph_executor.js @ graph_executor.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/executor/graph_model.js @ graph_model.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/node_modules/@tensorflow/tfjs/dist/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/face-detect-plugin.js @ face-detect-plugin.ts:2
webpack_require @ bootstrap:784
fn @ bootstrap:150
../face-detect-plugin/build/index.js @ index.ts:1
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/App.tsx @ plugins.ts:44
webpack_require @ bootstrap:784
fn @ bootstrap:150
./src/index.tsx @ UserMediaControl.tsx:65
webpack_require @ bootstrap:784
fn @ bootstrap:150
1 @ index.tsx:7
webpack_require @ bootstrap:784
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
Show 6 more frames
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Abs.js
Attempted import error: 'Abs' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Acos.js
Attempted import error: 'Acos' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Acosh.js
Attempted import error: 'Acosh' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Add.js
Attempted import error: 'Add' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Asin.js
Attempted import error: 'Asin' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Asinh.js
Attempted import error: 'Asinh' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Atan.js
Attempted import error: 'Atan' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Atan2.js
Attempted import error: 'Atan2' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Atanh.js
Attempted import error: 'Atanh' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/AvgPool.js
Attempted import error: 'AvgPool' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/AvgPool.js
Attempted import error: 'AvgPool' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/AvgPoolBackprop.js
Attempted import error: 'AvgPoolBackprop' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/AvgPoolBackprop.js
Attempted import error: 'AvgPoolBackprop' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Cast.js
Attempted import error: 'Cast' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Ceil.js
Attempted import error: 'Ceil' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Clip.js
Attempted import error: 'ClipByValue' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Complex.js
Attempted import error: 'Complex' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Concat.js
Attempted import error: 'Concat' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Cos.js
Attempted import error: 'Cos' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Cos.js
Attempted import error: 'Cos' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Cosh.js
Attempted import error: 'Cosh' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Dilation2D.js
Attempted import error: 'Dilation2D' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Dilation2DBackpropFilter.js
Attempted import error: 'Dilation2DBackpropFilter' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Dilation2DBackpropInput.js
Attempted import error: 'Dilation2DBackpropInput' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Div.js
Attempted import error: 'Div' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Div.js
Attempted import error: 'Div' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Elu.js
Attempted import error: 'Elu' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Erf.js
Attempted import error: 'Erf' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Exp.js
Attempted import error: 'Exp' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Expm1.js
Attempted import error: 'Expm1' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/FFT.js
Attempted import error: 'FFT' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/FlipLeftRight.js
Attempted import error: 'FlipLeftRight' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/FlipLeftRight.js
Attempted import error: 'FlipLeftRight' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Floor.js
Attempted import error: 'Floor' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/FromPixels.js
Attempted import error: 'FromPixels' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/BatchNorm.js
Attempted import error: 'FusedBatchNorm' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/BatchNorm.js
Attempted import error: 'FusedBatchNorm' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/IFFT.js
Attempted import error: 'IFFT' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Identity.js
Attempted import error: 'Identity' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Identity.js
Attempted import error: 'Identity' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Imag.js
Attempted import error: 'Imag' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/IsFinite.js
Attempted import error: 'IsFinite' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/IsInf.js
Attempted import error: 'IsInf' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/IsNaN.js
Attempted import error: 'IsNan' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Log.js
Attempted import error: 'Log' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Log1p.js
Attempted import error: 'Log1p' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/LogicalNot.js
Attempted import error: 'LogicalNot' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Max.js
Attempted import error: 'Max' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Max.js
Attempted import error: 'Max' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/MaxPool.js
Attempted import error: 'MaxPool' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/MaxPool.js
Attempted import error: 'MaxPool' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/MaxPoolBackprop.js
Attempted import error: 'MaxPoolBackprop' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/MaxPoolBackprop.js
Attempted import error: 'MaxPoolBackprop' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/MaxPoolWithArgmax.js
Attempted import error: 'MaxPoolWithArgmax' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/MaxPoolWithArgmax.js
Attempted import error: 'MaxPoolWithArgmax' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Multiply.js
Attempted import error: 'Multiply' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/NonMaxSuppressionV3.js
Attempted import error: 'NonMaxSuppressionV3' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/NonMaxSuppressionV4.js
Attempted import error: 'NonMaxSuppressionV4' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/NonMaxSuppressionV4.js
Attempted import error: 'NonMaxSuppressionV4' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/NonMaxSuppressionV5.js
Attempted import error: 'NonMaxSuppressionV5' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/NonMaxSuppressionV5.js
Attempted import error: 'NonMaxSuppressionV5' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/NotEqual.js
Attempted import error: 'NotEqual' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/PadV2.js
Attempted import error: 'PadV2' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Real.js
Attempted import error: 'Real' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Reciprocal.js
Attempted import error: 'Reciprocal' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Reshape.js
Attempted import error: 'Reshape' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Reshape.js
Attempted import error: 'Reshape' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/RotateWithOffset.js
Attempted import error: 'RotateWithOffset' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/RotateWithOffset.js
Attempted import error: 'RotateWithOffset' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Round.js
Attempted import error: 'Round' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Rsqrt.js
Attempted import error: 'Rsqrt' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Selu.js
Attempted import error: 'Selu' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Sigmoid.js
Attempted import error: 'Sigmoid' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Sign.js
Attempted import error: 'Sign' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Sin.js
Attempted import error: 'Sin' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Sin.js
Attempted import error: 'Sin' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Sinh.js
Attempted import error: 'Sinh' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Slice.js
Attempted import error: 'Slice' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Softplus.js
Attempted import error: 'Softplus' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/SpaceToBatchND.js
Attempted import error: 'SpaceToBatchND' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Sqrt.js
Attempted import error: 'Sqrt' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Square.js
Attempted import error: 'Square' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Square.js
Attempted import error: 'Square' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/SquaredDifference.js
Attempted import error: 'SquaredDifference' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/SquaredDifference.js
Attempted import error: 'SquaredDifference' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Step.js
Attempted import error: 'Step' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Sub.js
Attempted import error: 'Sub' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Tan.js
Attempted import error: 'Tan' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Tan.js
Attempted import error: 'Tan' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Tanh.js
Attempted import error: 'Tanh' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Transpose.js
Attempted import error: 'Transpose' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Transpose.js
Attempted import error: 'Transpose' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/Unique.js
Attempted import error: 'Unique' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/Unique.js
Attempted import error: 'Unique' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/flags_webgl.js
Attempted import error: 'device_util' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/base.js
Attempted import error: 'device_util' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/NonMaxSuppressionV3.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/NonMaxSuppressionV4.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
3index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/NonMaxSuppressionV4.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/kernels/NonMaxSuppressionV5.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
3index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/backend_cpu.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/kernels/NonMaxSuppressionV5.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/backend_cpu.js
Attempted import error: 'kernel_impls' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
2index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js
Attempted import error: 'upcastType' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
3index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/backend_cpu.js
Attempted import error: 'upcastType' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js
Attempted import error: 'upcastType' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-cpu/dist/backend_cpu.js
Attempted import error: 'upcastType' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
6index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-backend-webgl/dist/backend_webgl.js
Attempted import error: 'upcastType' is not exported from '@tensorflow/tfjs-core'.
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/reduction_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/convolution_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/spectral_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/creation_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/arithmetic_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/basic_math_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/dynamic_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/graph_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/slice_join_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/evaluation_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development/aubience/client/packages/face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors'
console. @ index.js:1
handleErrors @ webpackHotDevClient.js:174
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:213
index.js:1 ../face-detect-plugin/node_modules/@tensorflow/tfjs-converter/dist/operations/executors/transformation_executor.js
Module not found: Can't resolve '@tensorflow/tfjs-core/dist/ops/ops_for_converter' in '/Users/ost/Development

@vladmandic
Copy link
Owner

Q: Why can't it just work like the original face-api?

TFJS 2.x is not fully compatible with TFJS 1.x.
And FaceAPI is not my library, I just ported it.
On the other hand, I'm working on a brand new library - stay tuned.

Q: Why need to install both face-api and tfjs if tfjs is a dependency of face-api?

TFJS 1.x was a simple package.
TFJS 2.x was made modular and splits packages into multiple individual ones.
Actual @tensorflow/tfjs that remains is just import and re-export of individual packages (almost a virtual package). They made it so people could import individual backends as they needed to.

Q: Why with the original face-api I don't need to import tfjs for it to compile?

In short, I though that bundling entire TFJS 2.x makes FaceAPI too big as people can import only parts of tfjs they need (e.g., tfjs-core and tfjs-backend-webgl).
In my case, I also tend to modify tfjs code directly, so manually importing version of tfjs I'm currently working on makes everything much more flexible as I don't need to rebuild FaceAPI every time.
It also allows me to use tfjs for different purposes in my projects, not just inside FaceAPI. if there is tfjs already bundled inside FaceAPI, there is a big chance of version conflict with externally imported one.

But as you've stated (and others as well), people prefer simplicity over modularity so I'll make it so.
I though my reasons were sufficient, but popular demand says differently :-)

I'll publish a new version of FaceAPI shortly that includes TFJS and does not require any extra imports.

@ost12666
Copy link
Author

Hi, I really appreciate your quick and detailed responses. I actually like tfjs not bundled since I am using it in another audio related detection code and prefer to control which version I use. I was just wondering since I saw it is a dependency in your package.json and not a peer dependency.

Do you have any idea how to resolve the errors? It seems the code cannot locate the core and other tf libraries. I can wait for your new version if its coming soon or find a workaround like including it in the html as a script so the bundler will not process it?

@ost12666
Copy link
Author

An another question, is there a chance of using face-api with webworkers so it won't block the UI thread? I know its possible with tfjs itself.

@vladmandic
Copy link
Owner

New version is almost ready, I'm updating the docs now and should be published within an hour.

Regarding WebWorkers - It's possible, but somewhat outside of the scope of what I've intended with this port of FaceAPI (it's already much more work than I envisioned).

One of the issues is that FaceAPI internally uses standard HTMLCanvasElement which is not supported in webworkers. Instead it should use new offscreenCanvas.

I'll try to include that in my new library (hopefully by the end of this week).

@ost12666
Copy link
Author

thanks, that will be amazing!

@vladmandic
Copy link
Owner

New version @vladmandic/face-api: 0.7.1 is published and docs are updated to reflect changes.
I didn't have time for full tests with NodeJS & TypeScript, let me know how it looks.

@ost12666
Copy link
Author

Cannot find module '@vladmandic/face-api' or its corresponding type declarations.

@vladmandic
Copy link
Owner

silly me, that's what happens when you rush and publish without proper testing.
typo in package.json:main=....

republished - 0.7.2.

@ost12666
Copy link
Author

same I think because "typings": "build/index.d.ts" is actually in src?

@vladmandic
Copy link
Owner

it's in build/src/index.d.ts. corrected.

@vladmandic vladmandic self-assigned this Oct 14, 2020
@vladmandic vladmandic added the question Further information is requested label Oct 14, 2020
@ost12666
Copy link
Author

ost12666 commented Oct 14, 2020

Now I don't need to import tfjs before face-api but I get this error now because the faceapi returned from the import is an empty object {}. Also I think now tfjs should be a dependency and not devDependeny or peerDepenedency. Also you should probably use tfsj as npm module and use the dist/tf.es2017.js. Probably need to take a step back and rethink the whole module thing. Most people these days use modules and a. bundler.

TypeError: faceapi.TinyFaceDetectorOptions is not a constructor
../face-detect-plugin/build/face-detect-plugin.js
src/face-detect-plugin.ts:9
6 | // TinyFaceDetectorOptions
7 | const inputSize = 608;
8 | const scoreThreshold = 0.5;

9 | const useTinyModel = true;
10 | const faceDetectionOptions = new faceapi.TinyFaceDetectorOptions({ inputSize, scoreThreshold });

@ost12666
Copy link
Author

Ok could make it work with

import * as faceapi from '@vladmandic/face-api/dist/face-api.esm'

and then

declare module "@vladmandic/face-api/dist/face-api.esm"

But lost all the typings, it is ok for now but we will happy to help get the module stuff to work with types

Thanks!

@vladmandic
Copy link
Owner

vladmandic commented Oct 14, 2020

You were correct:

package.json was pointing to IIFE module as default import, not ESM - nothing else:

{
  // old default
  "browser": "dist/face-api.js",
  // should be
  "browser": "dist/face-api.esm.js",
}

and as you saw, you can manually specify which version to include:

// will import default
import * as faceapi from '@vladmandic/face-api';
// esm with tfjs bundled, this is now the default
import * as faceapi from '@vladmandic/face-api/dist/face-api.esm.js';
// esm without tfjs bundled, you must manually include @tensorflow/tfjs before importing face-api
import * as faceapi from '@vladmandic/face-api/dist/face-api.nobundle.js';

as you can see, I've now added both prebundled and nobundle versions, you can pick which one you want to use.
my bad for not having automated test for usage within bundlers.

regarding dependencies, it only means should @tensorflow/tfjs be installed - and since it's bundled during build for default import, it becomes only a devDependencies. (for face-api.nobundle.js it should be peerDependencies, but i cannot have it both ways).

@ost12666
Copy link
Author

Will I get the typings this way?

@vladmandic
Copy link
Owner

it should.
although i'm pretty reluctant to claim anything works out-of-the-box anymore :)
and don't have time to test it now, working on a new library.

@ost12666
Copy link
Author

it works now! never had such responsiveness in an open source project :) thanks

What is the new library, maybe face-api with webworkers?

@vladmandic
Copy link
Owner

thanks :)

new library is using totally different models and is written from scratch - i found that less frustrating than trying to modify face-api.

you can take a look at a prerelease: https://github.com/vladmandic/human
also, curious on your thoughts regarding web workers: vladmandic/human#2

@vladmandic
Copy link
Owner

closing as resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants