-
Notifications
You must be signed in to change notification settings - Fork 74
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
iX[2.0.4] in React production build showToast error. #1006
Comments
When I run |
@jul-lam here is a working example. It's just a project generated by |
Thank you for providing the example! We will investigate the issue. |
Found a workaround. Not sure if this is the intended way to use the component. When I add a Strangely this happens only in the transpiled build after running Please add a fix or modify the documentation. |
@mohitmutha that seems to be right! However, it is important to note, that you cannot wrap it around your application as in: <IxToastContainer>
<Application />
</IxToastContainer> Instead it needs to be its own enclosed tag sitting next to your application: <>
<IxToastContainer />
<Application />
</> The reason is that the component does not render its children. For some reason the line to do that is commented out. |
We will do some refactorings regarding [IX-822] |
Anyone having problems with icons not showing after building with the workaround? |
@dogukan-duduoglu No I did not experience this |
What happened?
Hello iX Team,
We are using iX[2.0.4] in React. We encounter an error in the Toast component as in the picture below. All of the packages we build with "npm run build" have a similar situation, including the code on the ix webpage (https://ix.siemens.io/docs/controls/toast).
Someone can suggest any solution? Thanks in advance.
What type of frontend frameware are you seeing the problem on?
React
Which version of iX do you use?
2.0.4
Code to produce this issue.
https://stackblitz.com/run?file=src%2Ftoast.tsx
The text was updated successfully, but these errors were encountered: