isar
isar copied to clipboard
build runner not generated files
Steps to Reproduce
Please describe exactly how to reproduce the problem you are running into.
dart create -t console isar_test
cd isar_test
dart pub add isar build_runner
dart run build_runner watch
Code sample
Edit bin/isar_test.dart
import 'package:isar/isar.dart';
part 'isar_test.d.dart';
@Collection()
class Package {
Id? id;
int? age;
}
void main(List<String> arguments) {
}
Details
- Platform: Linux x86_64
- Flutter version: Not use
- Isar version: ^3.1.0+1
- [x] I searched for similar issues already
- [x] I filled the details section with the exact device model and version
- [x] I am able to provide a reproducible example
yesterday i also experienced it, try running dart pub upgrade
yesterday i also experienced it, try running
dart pub upgrade
It was necessary to add isar_generator to the dependencies. I found out about it when I moved to pub.dev > Version > Documentation for 3.1.0.
This is kind of crazy.
thanks it works