“SyntaxError: Unexpected token < in JSON at position 0”

前端 未结 30 1941
花落未央
花落未央 2020-11-22 04:39

In a React app component which handles Facebook-like content feeds, I am running into an error:

Feed.js:94 undefined \"parsererror\" \"SyntaxError: Un

30条回答
  •  长发绾君心
    2020-11-22 05:29

    just something basic to check, make sure you dont have anything commented out in the json file

    //comments here will not be parsed and throw error
    

提交回复
热议问题