Skip to content
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

Lottie animations doesn't show on the menubar when offline #3205

Open
tvtr04 opened this issue Mar 7, 2025 · 0 comments
Open

Lottie animations doesn't show on the menubar when offline #3205

tvtr04 opened this issue Mar 7, 2025 · 0 comments

Comments

@tvtr04
Copy link

tvtr04 commented Mar 7, 2025

Describe the bug

When using the application offline, the icons on the menubar are not showing (empty) - for example the Secrets Manager / Cert Manager / … / OrgControlls icons (the Support icons does show).

From looking on the UI console it seems that it tries to pull the lottiefile wasm player but I’m on an offline network so the link unpkg.com does not exist.

I already know this issue from different project, you can fix this by adding at the root component (for example App.tsx) the imports:

import {setWasmUrl} from '@lottiefiles/dotlottie-react';
import lottieWasmUrl from '@lottiefiles/dotlottie-web/dist/dotlottie-player.wasm?url'

Then in the place you added the imports (e.g. main.tsx before the html root creation or in the app.tsx before the return statement - it doesn't matter where as long as it happens in the root of the application on load) add this statement:

setWasmUrl(lottieWasmUrl);

This will configure the library to use the player from the npm package instead of relying on downloading it from the cdn.

To Reproduce

Disable your internet connection and delete your browser cache. open infisical instance and you can see that in the menubar the icons are not showing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant