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.

IE 11 support not working with TypeScript

See original GitHub issue

What version of Next.js are you using?

latest

What version of Node.js are you using?

14.15.3

What browser are you using?

IE 11

What operating system are you using?

Windows

How are you deploying your application?

next start, next dev

Describe the Bug

In my application IE 11 support is not working. JS code breaks with errors, since the code is not transpiled properly. This can be reproduced with the example app https://github.com/vercel/next.js/tree/canary/examples/with-mobx-state-tree-typescript

just run the app and open it with IE 11

interestingly, this app works fine in IE 11, despite also using TypeScript https://github.com/vercel/next.js/tree/canary/examples/blog-starter-typescript

What is the difference between those two, i.e. what is causing the first example to fail?

Expected Behavior

The example https://github.com/vercel/next.js/tree/canary/examples/with-mobx-state-tree-typescript

should work in IE 11

To Reproduce

run

yarn create next-app --example with-mobx-state-tree-typescript with-mobx-state-tree-typescript-app
cd with-mobx-state-tree-typescript
yarn dev

then open http://localhost:3000 in IE 11 and look at the errors in developer mode

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jasonwilliamscommented, Apr 12, 2021

I would keep an eye on https://github.com/vercel/next.js/issues/22270 it may fix this issue

1reaction
kyle-ssgcommented, Apr 9, 2021

There seems to be several issues now that are closely related, IE11 simply seems to not work with nextjs in recent versions.

This should really be reopened or at least a single issue around this should be addressed, enterprise projects will definitely need support for this, not to mention nextjs openly states that it supports ie11 and modern browsers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript error in Typescript generated JS in IE11
IE 11 does not support the class keyword and language features, according to the compatibility table. You can force the Typescript compiler ...
Read more >
Angular < 13: How to support IE11 - DEV Community ‍ ‍
Target ES5: Pretty straightforward, IE11 only supports ES5 or lower. Therefore, TypeScript needs to Transpile your code to ES5 compatible code.
Read more >
How To Fix Your Angular App When It's Not Working in IE11
There can be numerous reasons why your Angular application is not working, including: ... Using a TypeScript target version which IE11 does not...
Read more >
Making a React Typescript application work on Internet ...
So you started working on a React application with Typescript and, after running npx create-react-app someapplicationname --template typescript ...
Read more >
Support older Microsoft browsers and Office versions
The Script Lab tool no longer supports Internet Explorer. ... determines whether the add-in is running in IE11 or Microsoft Edge Legacy.
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