If you want to preload a model on the a-assets tag, threejs fileLoader will interpret other assets as arrayBuffer, and when using this library it will output the error:
SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data
This happens because when the fileLoader loads the json, the responseType is configured as arrayBuffer and not as json.
If you want to preload a model on the a-assets tag, threejs fileLoader will interpret other assets as arrayBuffer, and when using this library it will output the error:
This happens because when the fileLoader loads the json, the responseType is configured as arrayBuffer and not as json.