Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge 18 (Object.fromEntries) not supported even with correct polyfills #16715

Open
FBosler opened this issue Aug 31, 2020 · 2 comments
Open

Edge 18 (Object.fromEntries) not supported even with correct polyfills #16715

FBosler opened this issue Aug 31, 2020 · 2 comments

Comments

@FBosler
Copy link

@FBosler FBosler commented Aug 31, 2020

Bug report

using the following .babel.rc leads to a build that should in theory support edge 18.

{
    "presets": [
        [
            "next/babel",
            {
                "preset-env": {
                    "targets": "> 0.25%"
                }
            }
        ]
    ],
    "plugins": [
        ["styled-components", { "ssr": true }],
        [
            "module-resolver",
            {
                "root": ["."],
                "alias": {
                    "@/Components": "components",
                   ...
                    "@/Functions": "components/Concepts/Functions"
                }
            }
        ]
    ]
}

This can be confirmed by running npx browserslist "> 0.25%". However, when testing live via browserstack (as its pretty hard to actually install edge 18), it seems like this is not the case, as the following bug pops up:

TypeError
Object doesn't support property or method 'fromEntries'

To Reproduce

Unfortunately, it's pretty hard for me to reliably reproduce the bug in a minimal example as I can't even run edge 18 locally. However, navigating to https://staging-viteach.com/concepts/rational%20numbers with edge 18 AND logging in - no validation required - will produce the bug.

Expected behavior

Would think that the config creates the correct polyfill.

Screenshots

image

System information

  • OS: Windows 10 (runtime)
  • Browser (if applies) edge 18 (runtime)
  • Version of Next.js: 9.4.4 (buildtime)
  • Version of Node.js: 13.13 (buildtime)
@eezing
Copy link
Contributor

@eezing eezing commented Sep 1, 2020

@FBosler stacktrace available?

@FBosler
Copy link
Author

@FBosler FBosler commented Sep 2, 2020

@FBosler stacktrace available?

Sorry, browserstack won't let me copy stuff, seems like its sandboxed. Not sure if the screenshot helps though. Thanks for looking into this.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.