0

My application was working mint until I just updated to the latest version of the Dart SDK and Editor.

When I run the app in Dartium, an error is thrown 'The built-in library 'dart:io' is not available on Dartium'. I am not using dart:io directly but imported lib packages like google_oauth2_client use it. This was all working fine until just an hour or two ago.

I am sort of stuck until this is resolved. Is anyone having the same issue?

2 Answers 2

1

dart:io isn't compatible with the browser, it's standalone-VM only. If google_oauth2_client uses it, which I doubt the library were not intended for client usage. Have you tried pub upgrade?

1
  • I saw a discussion recently in the Dart Google gropu about a bug in the versioning of some packages (in relation to agrs AFAIR) that caused this problem. Probably fixed by now. Just run pub upgrade Jan 18, 2014 at 8:30
1

google_oauth2_client has both a browser library and a console library. The console library makes use of dart:io while the browser one does not. Make sure that you are using the browser version. You can see an example of how to do this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.