Giter Site home page Giter Site logo

Comments (5)

rrousselGit avatar rrousselGit commented on June 26, 2024

Adding build_runner: 1.9.0 to flutter_tool - breaks the package.

What do you mean by this?

from functional_widget.

alekseikurnosenko avatar alekseikurnosenko commented on June 26, 2024

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_tools 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)

from functional_widget.

alekseikurnosenko avatar alekseikurnosenko commented on June 26, 2024

Just in case, here is a reproducible sample: https://github.com/lekz112/functional_widget_sample

I did the following:

  1. Create a new flutter project.
  2. Add dependency to pubspec.
  3. Add a function annotated with @widget.
  4. Try to build.
  5. Observe an error.

from functional_widget.

rrousselGit avatar rrousselGit commented on June 26, 2024

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:

from functional_widget.

alekseikurnosenko avatar alekseikurnosenko commented on June 26, 2024

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.
(flutter/flutter@e88ef6d#diff-5038cd916608b4b30824bf5b57d36959R27)

Since the manual way works normally, I'll just stick to it instead.

from functional_widget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.