Closed alekseikurnosenko closed 4 years ago
Adding build_runner: 1.9.0 to flutter_tool - breaks the package.
What do you mean by this?
Adding build_runner: 1.9.0 to flutter_tool - breaks the package. What do you mean by this?
I tried to patch Flutter SDK, by adding build_runner: 1.9.0
to flutter_tool
s pubspec
. (The one in flutter_sdk/packages/flutter_tools
).
When I did that though, it failed to build the package due to compilation errors. (Due to public API changes)
Just in case, here is a reproducible sample: https://github.com/lekz112/functional_widget_sample
I did the following:
pubspec
.@widget
.Raise an issue on Flutter's repository for them to support the latest version of build_runner.
Functional_widget can't do anything.
Alternatively use de_dependencies instead of builders:
After some investigation I found the the problem was that flutter_tools
is hard-coding required versions of build_runner
and build_daemon
.
While the version of build_runner
was updated to 1.10.0 (Available on dev
channel), the build_daemon
is still very old and also breaks.
(https://github.com/flutter/flutter/commit/e88ef6d554685812e59a85cde283e59df2b72c25#diff-5038cd916608b4b30824bf5b57d36959R27)
Since the manual way works normally, I'll just stick to it instead.
Hello, I am trying to start using this library, but keep getting the following error:
It seems that some dependency of
flutter_tool
pulls a fixed version ofbuild_runner
, which depends on an oldbuild_config
version.Here is my
pubspec.yaml
:I am using latest stable version of Flutter:
What I have already tried:
dependency_override
forbuild_runner
orbuild_config
- doesn't seem work.master
branch of Flutter SDK - same behavior.build_runner: 1.9.0
toflutter_tool
- breaks the package.Any ideas how to make it work?