Dart - error running rpc generate client -
i trying follow "beware nest o’ pirates" tutorial https://www.dartlang.org/codelabs/server/ , have hit problem when try generate client code piratesapi
when run command
pub global run rpc:generate client -i lib/server/piratesapi.dart -o lib/client
i following error message
failed executing command 'discoverywithimports' error:
no constructor 'apiparser' matching arguments declared in class 'apiparser'.
nosuchmethoderror: incorrect number of arguments passed method named 'apiparser'
receiver: type: class 'apiparser'
tried calling: apiparser(strict: true)
found: apiparser()
what error message mean?
try activating rpc package version constraint:
pub global activate rpc 0.4.1
Comments
Post a Comment