vacuumlabs/babel-plugin-extensible-destructuring

TypeError: Cannot read property 'Symbol(get)' of undefined

olimsaidov opened this issue · 1 comments

The error is thrown when location prop is undefined.

const {name, type} = this.props.location;

Is this behavior intentional?

Yes, it is. You can not destructure undefined.