Closed Asperson closed 3 months ago
Thanks for reporting! We'll see if we can get around this (e.g. rename the library classes to more unique names or alias the library imports with a prefix).
With the next release imports from the objectbox library will use an alias to make conflicts with entity classes less likely.
In my app I have entity named Condition and objectbox generator generates objectbox.g.dart with follow error:
The name 'Condition' is defined in the libraries 'package:myapp/model/condition.dart' and 'package:objectbox/src/native/query/query.dart'.
I wasn't able to find a way (like generator option) to resole that error other than rename my entity
Basic info:
Steps to reproduce
flutter pub run build_runner build --delete-conflicting-outputs
Expected behavior
code generation without errors