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

Not working IE11 in Prod Mode #156

Closed
sabariajith opened this issue Apr 21, 2021 · 3 comments
Closed

Not working IE11 in Prod Mode #156

sabariajith opened this issue Apr 21, 2021 · 3 comments
Labels

Comments

@sabariajith
Copy link

sabariajith commented Apr 21, 2021

css vars working fine in IE11 when run the application in local.
But when we host the application, then css vars not working.

I added following code in main.ts
cssVars({
include: 'style',
onlyLegacy: false,
watch: true
});

@jhildenbiddle
Copy link
Owner

Hi @sabariajith --

I can't offer much assistance without additional details about your app. If I had to guess, I'd assume this is an Angular app or you are using a CSS-in-JS library that leverages CSSOM APIs in production. These topics and proposed solutions can be found here: #19, #23, #77.

Hope this helps. If not, let me know and we'll figure out the next steps.

@sabariajith
Copy link
Author

Hi @jhildenbiddle
The above mentioned solutions are not working in my case. (Angular8 Project)
Actually the issue is in only material UI.
The css vars are not updating only material ui styles.
Basically I am using another libs in my project. that libs also using material ui.
Is oncomplete or updateDom is necessary for legacy browsers.

@jhildenbiddle
Copy link
Owner

@sabariajith --

Best thing to do is create a demo on https://codesandbox.io/ that we can both work from. Otherwise, there just isn't enough information available for me to help you with your issue.

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

No branches or pull requests

2 participants