You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, upon compiling the imported dotlottie player - the final js output seems to include a request for a local font file that does not exist - relating to this code:
Is it possible to remove this dependency? How can I prevent this from being included in my compiled code if I am importing the player via:
import '@dotlottie/player-component';
The text was updated successfully, but these errors were encountered:
avrilpearl
changed the title
Dotlottie Player: Request for non-existant "Karla" font file
Dotlottie Player: Request for local "Karla" font file that does not exist/compile.
Jan 29, 2024
From our side, we can configure the .styles.ts module to load dynamically only when the controls prop is set to true, since this font is unnecessary when controls are not displayed. It will still be included in your bundle, but it won't be requested and loaded in the browser unless you enable the controls prop.
Alternatively you can exclude the unwanted assets Karla-Regular.woff through your bundler's configuration.
Hi there, upon compiling the imported dotlottie player - the final js output seems to include a request for a local font file that does not exist - relating to this code:
player-component/packages/player-component/src/dotlottie-player.styles.ts
Line 7 in 0687c9b
Is it possible to remove this dependency? How can I prevent this from being included in my compiled code if I am importing the player via:
import '@dotlottie/player-component';
The text was updated successfully, but these errors were encountered: