I am getting the error: “TypeError: Cannot read property 'skin' of undefined” - What is wrong with my JSON structure?

后端 未结 0 1922
眼角桃花
眼角桃花 2021-01-28 18:04

I am calling the JSON file using const cases = require(\'../cases/case.json\');

Here is where the error happens: cases[desired].skin.covert.length

相关标签:
回答
  • 消灭零回复
提交回复
热议问题