docz: Generated docs and docz.site seems to be broken in IE11

Bug Report

If I navigate to http://docz.site/ using IE11, the screen is just blank. The same applies to any generated docs, whether in dev mode or on the built docs.

To Reproduce

  1. Go to http://docz.site/ with IE11

Expected: the docz site Actual: blank screen and an error in the console complaining about an unexpected closing body tag. A little later, a syntax error is encountered in a JavaScript file.

I have reproduced this error with the example provided in examples/basic.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 9
  • Comments: 31 (5 by maintainers)

Most upvoted comments

Is this still being looked into?

Has anyone found a workaround for this? I’ve tried adding a onCreateBabelConfig to gatsby-config.json; I’ve also tried gatsby-plugin-compile-es6-packages. I couldn’t get either to work.

If there are no workarounds, I may look into trying to contribute a PR if the maintainers would be open to it.

@pedronauck While it’s totally understandable to not officially support IE11, would you accept PRs that would make IE11 work with the understanding that it may break in any future releases, as long as those PRs don’t degrade performance for supported browsers?

any luck on this one? 😄we need our guide site to works in IE11 since a good number of our end users use that browser!

Hey all,

A PR would be very welcome !

If you’d like to give it a shot and have questions or need help please feel free to join our slack channel 👍

I did some digging and believe the bug is somewhere in the transpilation setup here: https://github.com/pedronauck/docz/blob/master/packages/docz-core/src/bundlers/webpack/loaders.ts

@pedronauck: I can help fix this bug if you can point me in the direction of where it is probably introduced. This whole monorepo/typescript setup is somewhat confusing.

Yes! unfortunately IE11 is still around 2.7% of worldwide traffic and a lot of big companies will still support this browser. It would be awesome if we could have Docz run in IE11 so we can test things on this browser as well.

Browser Stats https://www.w3counter.com/globalstats.php