Open minoesteban opened 1 year ago
I think you should add adapterName like that
Could you elaborate on the need for that extra parameter for a solution here? It seems that if not set a default one is created, that is already unique to each adapter
Same here, i faced this after upgrading flutter 3.10.2
Any update on this?!
deleteFromDisk() and open again
Try add ignoreTypeId before registerAdapter
Hive.ignoreTypeId(2);
Hive.registerAdapter(MainClassAdapter());
I'm also facing this issue with Flutter version 3.16.9
@minoesteban Did you find a solution finally ?
Steps to Reproduce
Reading fails with message
HiveError: Cannot read, unknown typeId: 34. Did you forget to register an adapter?
Based on the docs, reading old data after removing a property should be safe, but it throws
Found another possible solution in this comment
But we added
Hive.ignoreTypeId(N)
and now the error has changed, but it is still failingThe new error is
RangeError: Not enough bytes available.
Code sample
Version