Ares-package ERR! [Tips]: Failed to minify code. Please check the source code

when I am create ipk package by using ares-package I am getting this error
ares-package ERR! [Tips]: Failed to minify code. Please check the source code

I am using build of vite js app with legacy code support. because my normal code is showing blank page on tv.

Please refer to Package the web app and make sure if the essential files exist in your app. Thank you.

You’re getting that error because your code is already minified. You have to use the -n flag:
“ares-package -n ./yourdirectory”

1 Like

That was my case. Thanks mili95!