I have managed to remove this error, I was passing the dataConnect instance to the wrong function, I should have been passing it to get getStudentByemailRef not executeQuery. There were other errors in my original code, the following code clears the No Firebase App Query and correctly queries my database, it may help anyone else who is working with Data Connect local emulation.
window.GetStudentUserByemail = async function(_email) {
if (!fbInitialized || !dConnect) {
throw new Error('Firebase/DataConnect not initialized');
}
console.log('GetStudentUserByemail function activated with ', _email);
try {
const query = getStudentByemailRef(dConnect, { "email" : _email });
console.log('Query:', query);
const qryRef = await executeQuery(query);
return qryRef;
} catch (error) {
console.error('GetStudentUserByemail error:', error);
throw error;
}
};
Thanks Doug for your help.