Comments (3)
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.
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
from compreface-javascript-sdk.
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)
- I can't add images to the face collection (`TypeError: fs__WEBPACK_IMPORTED_MODULE_1___default.a.createReadStream is not a function`) HOT 3
- recognitionService.recognize without limit parameter results in malformed url HOT 2
- Request error 400 in recognition HOT 3
- Is there a Webcam Recognition App for JavaScript SDK? HOT 5
- Under non-windows platforms, whether it is a path judgment error bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compreface-javascript-sdk.