Older stylesheet from extension is preserved

Hi Team, I am using JupyterLab 3.6.3 and running into issue recently, where in my react-extension, older style sheet is getting preserved. So at a point of time, 2 classname declaration is present, one with updated styles and other with older style declaration. Browser cache is disabled. Removed nm, re installed, cleaned lab, nothing worked. Please help

eg: .sub-group-title-container

I would run jupyter --paths and seach each of the directories and subdirectories for any trace of a sceond or old copy of your extension, especially if you renamed the extension in the meantime.

FYI 3.6.3 is out of support, I recommend migrating to 4.x

1 Like

Thanks for replying. We are in the process of migrating it to 4.X.X. But wanted to solve this mean time. And i did not renamed the extension.

pasting output below

jupyter --paths
config:
    /Users/aruna/opt/anaconda3/envs/3.10.v_env/etc/jupyter
    /Users/aruna/.jupyter
    /Users/aruna/.local/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /Users/aruna/opt/anaconda3/envs/3.10.v_env/share/jupyter
    /Users/aruna/Library/Jupyter
    /Users/aruna/.local/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /Users/aruna/Library/Jupyter/runtime

Sorry, I did not mean that you should pase the output here, but look inside each of the directories (usually under data: in labextensions subfolder) to see where the outdated CSS is coming from. It may be in old lib or something.

2 Likes

Thanks. I was able to find the issue in other way. I had 2 extensions having “Davin” as dependency in both.
Extension - A running Davin - version - 0.0.30
Extension - B running Davin - version - 0.0.50
So the reason for stylesheet present twice is above.
The reason for older styles is because of the older davin version. Uninstalling Extension A from local, fixed the local env. Ideally they both run updated Davin.
Thanks for the help