You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the dart version of grpc-web and when using it under web worker, the generated code is using window global object which is not available.
The line causing the problem is: _stub = grpc.Client(GrpcWebClientChannel.xhr(Uri.parse('http://${server}:${port}')));
grpc.Client is generated code.
Here is the error output
Uncaught ReferenceError:
window is not defined
at Object.main (worker.dart:28)
at js_helper.dart:3221
at js_helper.dart:3221
at dartProgram (js_helper.dart:3221)
at js_helper.dart:3221
The text was updated successfully, but these errors were encountered:
I'm using the dart version of grpc-web and when using it under web worker, the generated code is using window global object which is not available.
The line causing the problem is:
_stub = grpc.Client(GrpcWebClientChannel.xhr(Uri.parse('http://${server}:${port}')));
grpc.Client is generated code.
Here is the error output
The text was updated successfully, but these errors were encountered: