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.

This addon is really awesome! Unfortunately it isn’t working on IE11 😞

The cause for this (there might be more) is react-element-to-jsx-string is on version 12.0.0 and not 13.0.0 (There’s a long chain of dependencies here but eventually it uses version 2.0.1 of get-own-enumerable-property-symbols which now includes an ES5 compiled version of the code).

Not sure if there are any other things that might break IE11, but after disabling just this addon storybook works as expected.

As a workaround - I can take full control over the storybook webpack config and remove the exclude from the .js rule, that excludes node_modules, that way every file will go through babel, but that’s highly inefficient and might cause other issues when compiling already compiled modules.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brendanmckeowncommented, May 7, 2018

There is a workaround for this issue until stringify-object adds support for IE11: add a loader to compile the package with Babel.

e.g. in your webpack.config.js file (your paths might be slightly different):

  config.module.rules.push({
    test: /\.js/,
    include: path.resolve(__dirname, '../node_modules/stringify-object'),
    use: [{
      loader: 'babel-loader',
      options: {
        presets: ['env']
      }
    }]
  });

You may also need to install Babel in your project if it’s not already available:

yarn add babel-loader babel-core babel-preset-env
0reactions
hipstersmoothiecommented, Apr 27, 2019

🚀 Issue was released in v7.1.2 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Explorer 11 - Microsoft Lifecycle
The Internet Explorer (IE) 11 desktop application ended support for Windows 10 semi-annual channel on June 15, 2022. Customers are encouraged to move...
Read more >
Internet Explorer 11 has retired and is officially out of support ...
After 25+ years of helping people use and experience the web, Internet Explorer (IE) is officially retired and out of support as of...
Read more >
Internet Explorer 11 End of Life - Lansweeper.com
The next step in the IE11 end of life will be the retirement of the Internet Explorer 11 desktop application on most supported...
Read more >
IE11 end of support countdown
Sources before May 19th 2021 · Support for older versions of Internet Explorer ended · Windows 10 product lifecycle · IE11 Mainstream End...
Read more >
IE11 end-of-life: How are businesses and developers affected?
* Microsoft Edge support on Window 7 ends on 15 January, 2023. IE mode support also ends at that time. The IE11 desktop...
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