erikras / erikras/react-redux-universal-hot-example
TypeError: Cannot read property 'length' of undefined
Open
- 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
Assessment
This issue has not been assessed yet.