Giter Site home page Giter Site logo

Comments (3)

smchedlidze826 avatar smchedlidze826 commented on May 29, 2024

The issue is tied to the version of react-scripts you are using. v5 has an issue as it excludes support for some node features that were available in lower versions.

Your quick fix is to take react scripts down to v4 until a fix for v5

you can run this command

npm i [email protected]

from compreface-javascript-sdk.

canst avatar canst commented on May 29, 2024

Describe the bug
I have had the same issue with failed compile because of the 'fs'. it fails because fs can't be resolved in @exadel/compreface-js-sdk/endpoints
Then I downgraded the react-scripts to the version you specified.
But I received another error:
Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:68:19) at Object.createHash (node:crypto:138:10) at module.exports (myPath\compreface-javascript-sdk-main\webcam_demo\node_modules\webpack\lib\util\createHash.js:135:53)

For me I conclude the is was the node version that is the problem in this case.
I then drowngraded my node version to v.14 and it compiled successfully.
But now I only have this start video button see image bellow

Screenshot 2023-11-14 081948

from compreface-javascript-sdk.

gaamaaresosa avatar gaamaaresosa commented on May 29, 2024

Today only I happen to test this SDK
I couldn't run successfully on my system.

Windows 10 64bit
Visual Studio Code latest
Node js 20+

I keep on getting some or the other error already every one mentioned here.
Mainly "can't resolve fs"

ERROR in ./node_modules/@exadel/compreface-js-sdk/endpoints/common_endpoints.js 17:0-20 Module not found: Error: Can't resolve 'fs' in 'C:\Users\BRAYSUNG\Desktop\face_founder\compreface-javascript-sdk-1.0.0\face_founder_demo\node_modules\@exadel\compreface-js-sdk\endpoints'

ERROR in ./node_modules/@exadel/compreface-js-sdk/endpoints/verification_endpoints.js 17:0-20 Module not found: Error: Can't resolve 'fs' in 'C:\Users\BRAYSUNG\Desktop\face_founder\compreface-javascript-sdk-1.0.0\face_founder_demo\node_modules\@exadel\compreface-js-sdk\endpoints'

Downgrading Node or react-scripts is not good as the world moves faster ahead.

Can some help me running this SDK on latest Node, react-scripts, React/Next js ?

Or can any one suggesst other solutions, especially I am intersted on
"face_founder_demo"
Picking similar photos from a single photo given.

from compreface-javascript-sdk.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.