Cannot read properties of undefined (reading 'then')
Question
Application Type
Reactive

Getting the below error and unable to sort it out: Any clue?

 Cannot read properties of undefined (reading 'then')

This issue was resolved long back and the root cause of the issue is not handled REST API response properly from the service to UI layer. Thanks for your responses.

mvp_badge
MVP

Hi Mahesh,

You really need to supply us with more information, this is a very general JavaScript error.

Please find the error log:

What we can say about this error, is that is a common error as Kilian said.

For example, if you are going to browser, you are going to see a lot of resolutions. For example, this one:

https://stackoverflow.com/questions/64925342/i-got-error-cannot-read-property-then-of-undefined

Can you share the code?


Champion

Hi Mahesh,

I also encountered the same issue. I would just create a new action that works in precisely the same way. Somehow it fixes and the error does not appear.

Hope it helps 

This issue was resolved long back and the root cause of the issue is not handled REST API response properly from the service to UI layer. Thanks for your responses.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.