This happens when you receive a document that is not a json file, for example; if no meta.json file was found, and your react app's response is to send a 404-page to any request to a resource that doesn't exist, you would encounter this.
I personally encountered this only when doing local debugging on localhost, so my solution was add a meta.json file with an empty version string in the /public directory. This file will be overwritten by the prebuild command anyway, so it doesn't matter that is empty.
This happens when you receive a document that is not a json file, for example; if no meta.json file was found, and your react app's response is to send a 404-page to any request to a resource that doesn't exist, you would encounter this.
I personally encountered this only when doing local debugging on localhost, so my solution was add a meta.json file with an empty version string in the /public directory. This file will be overwritten by the prebuild command anyway, so it doesn't matter that is empty.