The issue is relate to your problem can be addressed by pip installing the closest version of tensorflow. Kindly refer the below thread (also there are many similar thread with the same issue, you can search them using search tool by tensorflowjs version issue)