-
Notifications
You must be signed in to change notification settings - Fork 103
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
Icon component not working #267
Comments
Hi @i-pip
|
Thanks for the quick response. I was using @ui5/webcomponents-react 0.6.2. I updated to 0.7.0-rc.8 but the issue persists. My dependencies currently look like so:
I also made sure I deleted |
Hi @i-pip Can you try to install the exact version using As an alternative you could also add a resolution like: "resolutions": {
"@ui5/webcomponents-react": "0.7.0-rc.8",
"@ui5/webcomponents-react-charts": "0.7.0-rc.8",
} This exact-version thing should be a temporary thing as I made a bad release of the |
This works! 🎉 Thank you @MarcusNotheis. A quick note - I had to Thanks again for the quick responses - I will close this issue now. |
Icon doesn't work for me
I'm not getting any error message in the console.
|
I @ghewadesumit, you have to import the icon you want to render: There should be also a warning in the console that you don't have imported the Icon you are using. |
Hi @MarcusNotheis, Thanks for the reply. I tried importing the |
Can you try this one: |
Tried |
Is there anything logged into the console? Is there any minimal reproducible example you could share? |
That sounds like you have incompatible dependencies in your project. Can you run these commands and share the results with me: npm ls @ui5/webcomponents
npm ls @ui5/webcomponents-base
npm ls @ui5/webcomponents-react
npm ls @ui5/webcomponents-react-base |
I checked all my components are updated.
and there is also one more warning
As the warning suggests to use |
What is the setup you are using? cc @vladitasev @ilhan007 any ideas? EDIT: Issue is resolved, conflicting dependencies |
The error that i faced was, I was having the |
Icon component doesn't display.
I have the following:
No Icon is displayed, just a lot of console warnings like
Required icon is not imported. You have to import the icon as a module in order to use it e.g. "@ui5/webcomponents/dist/icons/add.js"
I've also tried
<Icon name="lightbulb" />
- neither work.The text was updated successfully, but these errors were encountered: