erikras / erikras/react-redux-universal-hot-example
Cannot read property `then` of undefined.
Open
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
Hey, I stumbled upon this error when working on the api backend:
```
TypeError: Cannot read property 'then' of undefined
[2] at /Users/username/dev/appname/api/api.js:33:24
```
What is causing the error? I just changed the function a bit.
Contributor guide
Research direction
Open api/api.js at line 33 and trace the function whose result is being accessed with .then, comparing it with the recent change described in the issue. Confirm the cause of the undefined value and document or reproduce the correction; the issue names no test or other validation entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100