-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.15.0: UI of side-column between self-built LSF and official package is different #7091
Comments
Hello, Thank you for contacting Label Studio, The difference you're seeing is likely due to the fact that the official build (distributed via pip) is generated by our CI/CD pipeline with a very specific build configuration and additional processing that may not be replicated exactly when you compile the source code locally. In the official build, the pre-built assets—for example, those in the
Instead of compiling the frontend manually, download and use the pre-built assets from the official pip package. These files are located in the If you prefer building from source, ensure that your build process exactly matches the one used in our CI. Check that:
The extra files (like 715.js and 743.js) may be webpack chunks that are generated with specific settings for the side-column UI. Verify that these are built with the proper module names and content as in the official build. Let us know if you need further assistance or additional details!
|
@heidi-humansignal thanks a lot for your reply. I tried both but without any luck: Option 1: when I use pip to install the distribution, it's installed under /label_studio/ls-venv/lib/python3.13/site-packages/. But I cannot find a directory called frontend. There is indeed a main.js and main.css under web/dist/apps/labelstudio/.
But when I use them in my app, it simply shows an error of the constructor in the developer console and nothing renders:
Option 2: Run the following to build the dev version:
After running this command, I got main.js, main.css under web/dist/libs/editor. With them, my app can render properly but it's the "ugly" version of side-column Is this the correct way to build a production version of LSF? Or did I miss anything? Thanks |
I finally got it working by adding the following settings before initializing the instance:
The UI now looks exactly like the pre-built version now. Not sure why but it's good enough for me to go forward. Thanks for your help! |
Hello, Awesome, glad it worked out. That is weird if its looking like pre-built version, might be one of the feature flags. Thank you,
|
Hi team,
I'm using the frontend in my own tool. I pulled the code of 1.15.0 and compiled the frontend part according to the document. Then use the following files in my tool:
main.css
main.js
715.js
743.js
The side-column looks like this:
It's quite different from the official build (installed with pip):
May I know how to get exactly the same UI of the side-column through LSF?
Thanks in advance.
The text was updated successfully, but these errors were encountered: