I had to add manually this dependency on the pubspec.yaml file: isar_generator: ^3.1.0+1, that works for me