It seems release/production deployment to web when using Flutter 2.10.1 and algolia: ^1.0.4 this line:
AlgoliaQuerySnapshot snap = await query.getObjects();
NoSuchMethodError: method not found: 'h' on null
The snapshot stackTrace is:
Error: TypeError: Cannot read properties of undefined (reading 'h') at Object.awd (https://mysite.firebaseapp.com/main.dart.js:21594:16) at https://mysite.firebaseapp.com/main.dart.js:40326:21 at aln.a (https://mysite.firebaseapp.com/main.dart.js:5325:62) at aln.$2 (https://mysite.firebaseapp.com/main.dart.js:35114:14) at akq.$1 (https://mysite.firebaseapp.com/main.dart.js:35108:21) at SE.mx (https://mysite.firebaseapp.com/main.dart.js:35962:32) at afi.$0 (https://mysite.firebaseapp.com/main.dart.js:35448:11) at Object.v_ (https://mysite.firebaseapp.com/main.dart.js:5416:40) at aa.pm (https://mysite.firebaseapp.com/main.dart.js:35377:3) at OD.cX (https://mysite.firebaseapp.com/main.dart.js:35101:8)
It is quite odd because it seems to be working perfectly fine in debug mode. Is this possibly somehow to do with Algolia permissions for accessing the query through getObjects() function?
Any insight would be appreciated! Thank you