erikras / erikras/react-redux-universal-hot-example

TypeError: Cannot read property 'length' of undefined

Open
#1,185 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I'm running into two issues that may be related:
1. I'm receiving `error given was: TypeError: Cannot read property 'length' of undefined` whenever I call string methods (e.g. `length`, `substring`, `slice`, et al)

e.g. `const { title, description } = app; console.log(description.length);` throws the aforementioned error.
2. I can't access obj properties.

e.g.

```
function StatelessComp({ parent }) {
const { myString, myObj } = parent;
console.log(myObj.id);
}
```

Any idea what could be causing these issues?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.