fluttercommunity / redux.dart

Redux for Dart
https://pub.dev/packages/redux
MIT License
515 stars 61 forks source link

Problem with package:todo/redux/actions.dart #41

Closed hjonathan closed 5 years ago

hjonathan commented 5 years ago

I want to do my first redux app( redux:3.0.0 & MacOs high Sierra) but I have the next error:

Your application could not be compiled, because its dependencies could not be established. The following Dart file: /Users/jonathan/.pub-cache/hosted/pub.dartlang.org/redux-3.0.0/lib/src/store.dart ...refers, in an import, to the following library: package:todo/redux/actions.dart That library is in a package that is not known. Maybe you forgot to mention it in your pubspec.yaml file?

Some idea?

johnpryan commented 5 years ago

it looks like lib/src/store.dart is importing package:todo/redux/actions.dart... did you accidentally make a modification to the Dart file at /Users/jonathan/.pub-cache/hosted/pub.dartlang.org/redux-3.0.0/lib/src/store.dart?

hjonathan commented 5 years ago

Nothing I was creating a new project and when I import redux (import 'package:redux/redux.dart') the error appears

hjonathan commented 5 years ago

I deleted the folder /Users/jonathan/.pub-cache/hosted/pub.dartlang.org/redux-3.0.0 and I executed "flutter packages get" again and every thing is OK