-
Notifications
You must be signed in to change notification settings - Fork 840
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
Icons not loading when page loads #6099
Comments
Hi @silverview7, It seems that is something wrong with the way you're setting up EUI. Are you following these instructions? https://eui.elastic.co/#/guidelines/getting-started#setting-up-your-application |
Could also be related to #5463 if you are not using webpack to bundle your app. |
Using |
👋 This issue hasn't seen activity in 3 days, so we're automatically closing this issue as answered. Please leave a comment if that's not the case, or if you have any remaining questions or issues. |
I incidentally discovered today that as long as the StrictMode is not opened, EuiIcon can be loaded correctly. However, React is officially recommended that to completely follow the strict mode requirements to avoid unknown BUGs, so it is a bit uncomfortable. I'm not used to close the StrictMode, but now I have to. |
@RickoNoNo3 That's a great solution, and honestly better than caching all the icons individually. It's also fixed some other strange behaviors I have noticed while using this UI. Thing is StrictMode isnt used in production anyways so shouldn't be to big of a deal, as long as precautions are taken. |
We've had an internal report of icons not loading, and I've now reproduced in a fresh create-react-app in which our icons don't load. Looks like it is related to how strict mode changes React's rendering; I have a fix that works for create-react-app and will put up a PR once we confirm it fixes our internal case as well. |
Hi all,
I've been facing an issue where for example I am using the EuiFieldText or EuiDatePicker and the icons don't load in. Instead there's a grey box in place of where the icon should be.
Not sure whether its the way I'm implementing it or if its a known issue.
The text was updated successfully, but these errors were encountered: