Skip to content

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

Closed
@SimenB

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;
    }
  }
}

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