question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IE11 Support on 1.0

See original GitHub issue

Trying to run anything on IE11 results in unhappy life, we know that.

But, the main issue to have Chakra running on IE looks to be related to framer-motion not supporting IE11.

I was able to have most stuff working, apart from few components, following this suggestion: https://github.com/framer/motion/issues/364#issuecomment-723137822

My polyfills at begin of my entrypoint (note that proxyDefined has to be included BEFORE proxy-polyfill - as explained in the above link):

import 'core-js/stable'
import { proxyDefined } from './clientState'
import 'proxy-polyfill'
import 'whatwg-fetch'

clientState.js

const hasProxy = (scope) => !!scope.Proxy
export const proxyDefined = hasProxy(window)

framer-motion-wrapper.js

import { motion as origMotion, createDomMotionComponent } from '../node_modules/framer-motion';
import { proxyDefined } from './clientState';

// fragile copied from internal framer-motion supported-elements.ts
import { htmlElements, svgElements } from './framer-motion-supported-elements';

// Adapted from https://github.com/framer/motion/commit/b4319c78fb4bde28ce0d2a8008df48d7e3fd1c8b
const createNonProxyMotion = () => {
  let motionProxy = {
    custom: (component) => {
      createDomMotionComponent(component);
    },
  };
  motionProxy = htmlElements.reduce((acc, key) => {
    acc[key] = createDomMotionComponent(key);
    return acc;
  }, motionProxy);
  motionProxy = svgElements.reduce((acc, key) => {
    acc[key] = createDomMotionComponent(key);
    return acc;
  }, motionProxy);
  return motionProxy;
};

export const motion = proxyDefined ? origMotion : createNonProxyMotion();
export * from '../node_modules/framer-motion';

I’m still having issues with the icon loaded from AlertIcon in Alert component: immagine

I know it’s sub optimal to still support IE, but if that’s anything easy might be worth a try.

Thanks everyone!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:24 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
with-heartcommented, Nov 14, 2020

Gonna investigate this when I have some time!

1reaction
goethelcommented, May 25, 2021

Hey @hanseltime ,

Thank you so much! I was able to get my project running successfully on IE11 without the patch above with your plugins. Checkboxes&Toasts no longer flicker, but Toasts still dont work in IE (they are added to the chakra toast portal div in the DOM successfully, but the end user’s screen doesn’t see them).

However, this is now a styling problem and not a “IE11 wont work at all” problem, so it’s one I can likely solve.

Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plan for change: TLS 1.0 and TLS 1.1 soon to be disabled by ...
For all supported versions of Internet Explorer 11 and Microsoft Edge Legacy (EdgeHTML-based), TLS 1.0 and TLS 1.1 will be disabled by ...
Read more >
End of support for Internet Explorer 11 and TLS versions 1.0 ...
IE 11, by default, supports TLS version 1.0 only, which can cause serious damage and security issues. You can read about a few...
Read more >
UPDATE: Transport Layer Security 1.0 and 1.1 disablement
Transport Layer Security (TLS) 1.0 and 1.1 security protocols. ... Microsoft will no longer support TLS 1.0/1.1 in Microsoft Teams Desktop ...
Read more >
Disable Enable TLS 1.0 and 1.1 for Internet Explorer EdgeHTML
You can disable or enable TLS 1.0 and 1.1 for Internet Explorer and EdgeHTML – the rendering engine for the WebView control.
Read more >
Microsoft Browser Support for TLS 1.0 and 1.1 Ending 2H 2020
For all supported versions of Internet Explorer 11 and Microsoft Edge Legacy (EdgeHTML-based), TLS 1.0 and TLS 1.1 will be disabled by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found