hive
hive copied to clipboard
i have probleme in run code
Question Error compiling to JavaScript: XMLHttpRequest error.
Code sample
void main() async {
//Hive.init('somePath') -> not needed in browser
var box = await Hive.openBox('testBox');
box.put('name', 'David');
print('Name: ${box.get('name')}');
}
Version
- Platform: Android
- Flutter version: 2.8
- Hive version: hive: ^2.1.0
Was this observed on Android or Web?
flutter Android
flutter Android
This is curious, AFAIK hive does not make any HTTP request, and I recently faced this error with the http package and this is what helped me.
is not http error ; thank bro
is not http error ; thank bro
Isn't the error XMLHttpRequest error.
?
yes is XMLHttpRequest error