Skip to content

Issue with Tesnorflow JS Face Detection on Production #68717

@mirzamukkarambaig

Description

@mirzamukkarambaig

I am creating a React JS-based front end that employs the Tensorflow JS Simple Face Detection model. The application runs fine when being run on the dev environment using npm run dev. However when I run npm run build and npm run preview the model throws the following error:
index-BEYgabte.js:15635 Uncaught (in promise) TypeError: Zse.FaceDetection is not a constructor at new t (index-BEYgabte.js:15635:1827) at index-BEYgabte.js:15635:3968 at index-BEYgabte.js:15635:1457 at Object.next (index-BEYgabte.js:15635:1562) at index-BEYgabte.js:15635:499 at new Promise (<anonymous>) at l0 (index-BEYgabte.js:15635:250) at SEe (index-BEYgabte.js:15635:3683) at index-BEYgabte.js:15635:15604 at index-BEYgabte.js:15635:1457

This is the picture of the preview
image

This is the picture of the dev
Screenshot from 2024-05-28 18-24-46

Metadata

Metadata

Labels

stat:awaiting responseStatus - Awaiting response from authortype:othersissues not falling in bug, perfromance, support, build and install or feature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions