Skip to content

How can I make nextjs supported optional chaining? #9004

@kuongknight

Description

@kuongknight

I used nextjs 9.1 and I add custom .babelrc
{ "presets": ["next/babel"], "plugins": [ ["@babel/plugin-proposal-optional-chaining"] ] }
But I found complie issue:
Add @babel/plugin-proposal-nullish-coalescing-operator (https://git.io/vb4Se) to the 'plugins' section of your Babel config to enable transformation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions