Skip to content

fixed build issue #225

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

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hello-world/angular/angular.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,8 @@
"styles": [
"src/styles.css"
],
"scripts": []
"scripts": [],
"baseHref": "./"
},
"configurations": {
"production": {
3 changes: 2 additions & 1 deletion hello-world/react-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "dbrjs-react-sample",
"name": "dbrjs-react-hook-sample",
"version": "0.1.0",
"private": true,
"homepage": "./",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Original file line number Diff line number Diff line change
@@ -86,11 +86,10 @@ function VideoCapture() {
alert(errMsg);
}
}
// Resolve pInit promise once initialization is complete.
resolveInit!();
})();

// Resolve pInit promise once initialization is complete.
resolveInit!();

// componentWillUnmount. dispose cvRouter when it's no longer needed
return async () => {
isDestroyed = true;
@@ -99,13 +98,13 @@ function VideoCapture() {
await pInit;
cvRouter?.dispose();
cameraEnhancer?.dispose();
} catch (_) {}
} catch (_) { }
};
}, []);

return (
<div>
<div ref={cameraViewContainer} style={{ width: "100%", height: "70vh" }}></div>
<div ref={cameraViewContainer} style={{ width: "100%", height: "70vh" }}></div>
<br />
Results:
<div ref={resultsContainer} className="results"></div>
1 change: 1 addition & 0 deletions hello-world/react/package.json
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
"name": "dbrjs-react-sample",
"version": "0.1.0",
"private": true,
"homepage": "./",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Loading