Open reesscot opened 5 months ago
Hello @reesscot
I'm facing this issue. When I add "@tensorflow/tfjs-core": "^4.17.0"
all warnings are solved, but I'm not sure if in that way the amplify would override and use v4.17 instead of 4.11.
Hi @jeziellago,
The Liveness component has not been tested with @tensorflow/tfjs-core
version 4.17.0, so I would recommend continuing to use 4.11.0. If you're using npm, you can use the following override to get rid of the warning:
"overrides": {
"@tensorflow/tfjs-core": "4.11.0"
}
My research shows that the @tensorflow-models/face-detection
has a peerDependency
on @tensorflow/tfjs-backend-webgl
that allows any minor version above 4.4.0. Thus it seems that npm is then installing the latest version of @tensorflow/tfjs-backend-webgl
which then requires @tensorflow/tfjs-core
version 4.17.0, which causes the warning.
Liveness does not use @tensorflow/tfjs-backend-webgl
, so you can safely ignore the warning. I doublechecked what is installed in node_modules by npm when seeing the warning, and all @tensorflow
packages other than the unused @tensorflow/tfjs-backend-webgl
are correctly showing as 4.11.0.
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Liveness
How is your app built?
N/A
What browsers are you seeing the problem on?
No response
Which region are you seeing the problem in?
No response
Please describe your bug.
I'm seeing a console warning for
@tensorflow/tfjs-backend-webgl
when installing Amplify Liveness@aws-amplify/ui-react-liveness
packageWhat's the expected behaviour?
No warning when installing package
Help us reproduce the bug!
See above
Code Snippet
Console log output
No response
Additional information and screenshots
No response