I worked out what the issue was. This is related to the following closed issue.
Query of Undefined
Basically, users need to have a minimum of an Author role in order to upload media files otherwise you get that non-descriptive error in the console as follows.
Uncaught TypeError: Cannot read property 'query' of undefined