You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
greenrobot-team
changed the title
[Flutter][generator] Generated code has ambigous class references in some cases
[Generator] Imports in generated code conflict with common entity class names
May 9, 2023
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
The text was updated successfully, but these errors were encountered: