-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When generating code, errors occur due to disordered sequencing. #458
Comments
I have noticed a similar issue in 2.6.1.@Adam-Langley, works in <=2.6.0 with a workaround to have the same dependencies for all environments even if not needed. |
Can confirm this issue: With version |
We’re experiencing the same issue. For now, we are downgrading to |
Same issue on 2.6.2, is related with multiple enviroments |
Step 1 : In the code, I defined a structure like this.
Step 2 : use
flutter packages pub run build_runner build --delete-conflicting-outputs
to generate injectable.config.dartPlease take a look at the code. On line 288, the
ApiMethods
requires theEnvConfig
parameter. However, if I use theprod
environment parameter here,ApiMethods
will not be generated. This is because theprod
version ofEnvConfig
is defined only on line 342, which will cause an error here.Previously, with version 2.3.2 of
injectable
and 2.4.1 ofinjectable_generator
, everything worked normally.The latest versions being used are:
The text was updated successfully, but these errors were encountered: