Skip to content

no-named-as-default-member -TypeError: Cannot read property 'name' of undefined #281

Closed

Description

no-named-as-default-member.js:85:42

Unsure what source makes it crash... Narrowed it down to:

function someFunction() {
  switch (someVariable) {
    case 'something': {
      const { // The error is reported at the { on this line
        ...rest
      } = someGlobal;
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions