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

Conflict with analyzer library #22

Closed
fegasa12 opened this issue Sep 29, 2019 · 1 comment
Closed

Conflict with analyzer library #22

fegasa12 opened this issue Sep 29, 2019 · 1 comment

Comments

@fegasa12
Copy link

There appears to be a conflict with the analyzer library being used. No toFunctionValue method... Please advise on how to solve this.

The following error appears when executing the flutter packages pub run build_runner build --delete-conflicting-outputs command:

../../../flutter/.pub-cache/hosted/pub.dartlang.org/source_gen-0.9.4+5/lib/src/constants/revive.dart:22:49: Error: The method 'toFunctionValue' isn't defined for the class 'DartObject'. - 'DartObject' is from 'package:analyzer/dart/constant/value.dart' ('../../../flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.36.4/lib/dart/constant/value.dart').Try correcting the name to the name of an existing method, or defining a method named 'toFunctionValue'. final element = object.type.element ?? object.toFunctionValue();

@stefanuscc
Copy link

In my case, i solved it by changing the analyzer package version to analyzer: ^0.37.1 on my pubspec.yaml and then run the flutter packages pub run build_runner build --delete-conflicting-outputs command again

SuperFireCoder added a commit to SuperFireCoder/flutter-boilerplate that referenced this issue Mar 18, 2024
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

2 participants