Problem in training images

Based on this document, I want to train the images in the browser, but I encounter many errors.
As described in this document, can Image Training be done in the browser or must it be done using NodeJs and through api?

Hello @fawela3670,

Yes, the image trainer can be utilized on the browser. Can you please verify that you have imported the web build of the trainer using this code:

import { train } from "@zappar/imagetraining/web";

If you have already done so, kindly share any error messages you may have encountered.

Thank you!