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 not working after v9.2.1-canary.2 update

See original GitHub issue

Bug report

Describe the bug

First of all: sorry for posting a boring IE11 issue šŸ˜­

After Updating to v9.2.1 our project stoped working on IE11. The pages didnt load as expected and the css wasnā€™t applied correctly. So we went through the canary releases and got to the point, that the changes in v9.2.1-canary.2 cause the behaviour. More specificly the pullrequest ā€œFix hydration with custom _app and granular chunks #10144ā€ file ā€œpackages/next/build/entries.tsā€ line 129.

To Reproduce

  1. Go to with-polyfills example
  2. Open examples\with-polyfills\client\polyfills.js and add the following imports before the other imports:
import 'core-js/es7/object'
import 'core-js/es7/map'
import 'core-js/es7/array'
import 'core-js/es6'
import 'core-js/es7/symbol'
  1. In the package.json use Version ā€œ9.2.1-canary.1ā€ first (it works) and then ā€œ9.2.1-canary.2ā€ (its broken)
  2. yarn
  3. yarn build
  4. yarn start
  5. open Page in IE 11

We have a rather complicated project with next-css etc. But to reproduce we used a local production build and opened the page in IE11. Before the described Change, everything worked as expected but didnā€™t after the change. The first thing to notice was the css, that wasnā€™t applied correctly and the parsing error on the console.

We changed the following code:

client[bundlePath] =
        page === '/_app'
          ? [pageLoader, require.resolve('../client/router')]
          : pageLoader

to:

client[bundlePath] = pageLoader

and the page worked again but I assume something else doesnā€™t šŸ˜ƒ. It looks like the require.resolve() could be the problem on IE11?

Expected behavior

The page is displayed correctly as with the previous versions.

Screenshots

Before (good): image

After (broken): image

System information

  • OS: Windows 10
  • Browser (if applies) IE 11 (11.592.18362.0)
  • Version of Next.js: v9.2.1-canary.2 and newer

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:35
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

15reactions
RossMcMillan92commented, Jan 28, 2020

Iā€™ve experienced this too with the v9.2.1 update. Sometimes in IE11 weā€™ll see objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, _store})., whereas other times it works fine.

Pinning the Next version to 9.2.0 fixes the issue.

4reactions
Timercommented, Mar 6, 2020

Next.js 9.3 (next@canary) will load all polyfills for IE11 before any other code executes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems after installing Internet Explorer 11 - Microsoft Learn
Possible solutions to the problems you might encounter after installing IE11, such as crashing or seeming slow, getting into an unusableĀ ...
Read more >
Angular 9 Application Not running on IE11 - Stack Overflow
I added a new tsconfig-es5.app.json file, updated angular.json configuration, edited browserslist then run ng serve --configuration es5 . TheĀ ...
Read more >
Articulate 360 will discontinue support for Internet Explorer 11
Update: Articulate 360 will discontinue support for Internet Explorer 11 ... Courses published prior to July 1, 2022 will continue to work in...
Read more >
Internet Explorer 11 Extended Support - Salesforce Help
After December 31, 2022, the use of Internet Explorer 11 (IE11) with Lightning ... And, issues and breaking changes with performance orĀ ...
Read more >
Microsoft Suggests Ending IE 11 Before It Gets Disabled
The announcement described the Windows Update removal process as instituting ... The problems encountered after ditching IE 11 could be veryĀ ...
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