Skip to content
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

Getting Started page Install Dependencies step doesn't work (NNBD) #610

Closed
TytaniumDev opened this issue Dec 21, 2020 · 3 comments
Closed

Comments

@TytaniumDev
Copy link

I'm setting up a new Flutter project with the dart SDK version set to sdk: ">=2.12.0-0 <3.0.0" to enable null safety. When following the Install Dependencies section of https://mobx.netlify.app/getting-started/, the following error occurs when running flutter packages get:

packages get

Because mobx_codegen >=1.0.3 depends on mobx ^1.1.0 and app_namedepends on mobx ^2.0.0-nullsafety.2, mobx_codegen >=1.0.3 is forbidden.
So, because app_name depends on mobx_codegen ^1.1.2, version solving failed.

Running "flutter pub get" in AppName...

pub get failed (1; So, because app_name depends on mobx_codegen ^1.1.2, version solving failed.)

Could the Getting Started page be updated to resolve this issue? Or is this mostly just waiting for mobx_codegen to be updated?

Notes:

The pubspec.yaml for this app looks like this:

environment:
  sdk: ">=2.12.0-0 <3.0.0"
  flutter: ">=1.17.0"

dependencies:
  flutter:
    sdk: flutter
  mobx: ^2.0.0-nullsafety.2
  flutter_mobx: ^2.0.0-nullsafety.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  integration_test:
    sdk: flutter
  build_runner: ^1.10.9
  mobx_codegen: ^1.1.2
  pedantic: ^1.10.0-nullsafety.3

@KAROTT7
Copy link

KAROTT7 commented Dec 25, 2020

I have same problem!!!!

@DavidTheProgrammer
Copy link

Until they update mobx_codegen with nullsafety I was able to get this running by downgrading to the latest non-nullsafe version of mobx & flutter_mobx

mobx: ^1.2.1+4
flutter_mobx: ^1.1.0+2

@pavanpodila
Copy link
Member

Fixed with #623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants