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 

https://www.dartlang.org/tools/pub/cmd/pub-global.html


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -