Hyuto / yolov8-tfjs

YOLOv8 right in your browser with tensorflow.js
https://hyuto.github.io/yolov8-tfjs/
123 stars 33 forks source link

Build Issue #9

Open Muhamed555 opened 10 months ago

Muhamed555 commented 10 months ago

Hello, thanks for the great repo. When I run the following code:

yarn build

and run the app I get a blank page, what's the problem? and do you know how we can build it as an electron app? Thanks in advance.

Hyuto commented 8 months ago

Hello, I think there is no problem on build. I suspect the main issue is you try to serve build dist on "." base level since this project is serve at /yolov8-tfjs/ base on https://hyuto.github.io/yolov8-tfjs/

You can revert this by deleting single line on vite.config.js

...
base: "/yolov8-tfjs/",
...

After deleting that line of code you should be able to serve it normally, and I think the build distribution can be serve on electron app as well.