Skip to content

IE11 breaks when importing components with next/dynamic #36146

Closed
@jaspersorrio

Description

@jaspersorrio

Verify canary release

  • I verified that the issue exists in Next.js canary release

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Wed Oct 28 23:40:43 UTC 2020
Binaries:
  Node: 12.22.4
  npm: 6.14.14
  Yarn: N/A
  pnpm: N/A
Relevant packages:
  next: 12.1.6-canary.0
  react: 18.0.0
  react-dom: 18.0.0

What browser are you using? (if relevant)

IE11 21H2 (OS Build 19044.1645)

How are you deploying your application? (if relevant)

No response

Describe the Bug

  1. With IE11 import any component with "next/dynamic"
  2. Page will not render correctly, JS will stop working (onClick etc)

Expected Behavior

  1. With IE11 import any component with "next/dynamic"
  2. Page renders correctly, JS continues to work (onClick etc)

To Reproduce

  1. Git Clone https://github.com/jaspersorrio/next-js-ie11-bug

  2. npm install && npm run dev

  3. Open IE 11

  4. [GET] http://localhost:3000 <-- Will error

  5. [GET] http://localhost:3000/without-dynamic <-- Works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions