【问题标题】:How do i block a specific error in react js我如何阻止反应js中的特定错误
【发布时间】:2022-11-11 10:26:30
【问题描述】:

这是我的 Home.js :

我在这里做错了什么我收到了这个错误:

【问题讨论】:

    标签: javascript reactjs error-handling


    【解决方案1】:

    我收到了这个错误

    Uncaught TypeError: Cannot read properties of undefined (reading 'path')
        at _getChild$1 (reference.ts:504:1)
        at refFromPath (service.ts:77:1)
        at ref$1 (service.ts:116:1)
        at ref (api.ts:304:1)
        at getUserDetails (Home.js:29:1)
        at Home.js:52:1
    
    and i am pretty sure that this is coming from onValue
    but the thing here is that getUserDetails also runs without actually running it so what is it
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-05
      • 1970-01-01
      • 2015-10-17
      • 2020-08-11
      • 1970-01-01
      • 1970-01-01
      • 2020-06-05
      相关资源
      最近更新 更多