isar / isar/hive

Exception when changing the typeId

Open
#949 1 comment 0 reactions 0 assignees View on GitHub
problem
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Steps to Reproduce**
Change the typeId of an existing adapter from 1 to 2

**Exception**
```
Unhandled Exception: HiveError: Cannot read, unknown typeId: 43. Did you forget to register an adapter?
```
Never used the typeId: 43. When I remove the app and reinstall, everything works as it should. I made a few breaking changes in the model that is way I would like to change the typeId. Anyone facing the same issue? How is the default procedure when a model has breaking changes?

**Version**
- Platform: iOS, Android
- Flutter version: 2.10.4
- Hive version: 2.1.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.