Giter Site home page Giter Site logo

Comments (3)

tensor-programming avatar tensor-programming commented on July 1, 2024 2

@brianegan Actually, I now know what the problem is exactly. Normally when working with flutter (or dart in general), I import all packages using the package import method; I never use relative path because i find it is messy. However, sometimes I am rushing and I don't realize that I accidently did import something via relative path. I found this out the hard way in a different situation dart-lang/sdk#33149.

It seems you were right about the import paths etc. I will be closing this issue. Thanks for taking the time to get in touch with me.

from flutter_redux.

brianegan avatar brianegan commented on July 1, 2024 1

Hey hey... Sorry about the trouble & delay, traveling at the moment. Dang, this is definitely the number 1 problem folks have experienced, and it almost always comes down to a problem with how Dart resolves imports. Could you please try importing all of your files in a consistent way? E.g. always with Relative or always with package-style imports (import 'my_reducer.dart' or import 'package:my_lib/my_reducer.dart')? Another problem: Sometimes if you define the AppState in the main.dart file and import main.dart in another file, it will think the AppState is different in the two files.

If you try those solutions and they don't work, would you be able to provide a bit more code, such as a repo that I could take a look at?

from flutter_redux.

brianegan avatar brianegan commented on July 1, 2024

Glad it's resolved! I kinda think we should provide more feedback to the Dart team about this issue. I see it come up quite often.

from flutter_redux.

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.