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
After importing MessagePackHubProtocol from @aspnet/signalr-protocol-msgpack inside of an Angular app using the Angular cli, the application will no longer run in the browser.
You will see the following exception in the console.
After importing MessagePackHubProtocol from @aspnet/signalr-protocol-msgpack inside of an Angular app using the Angular cli, the application will no longer run in the browser.
You will see the following exception in the console.
Steps to reproduce the behavior:
Clone and run the following app:
https://github.com/QuinntyneBrown/ng-signalr-protocol-msgpack-issue
or
Create an angular app using the angular cli
npm install @aspnet/signalr and @aspnet/signalr-protocol-msgpack
In the app component, import HubConnectionBuilder from @aspnet/signalr
In the app component, import MessagePackHubProtocolfrom @aspnet/signalr-protocol-msgpack
In the app component, add a method called ngOnInit
Inside the ngOnInit method, add the following code
var connection = new HubConnectionBuilder()
.withUrl("")
.withHubProtocol(new MessagePackHubProtocol())
.build();
run the app with the console open, and you should see the error. The UI will be blank.
Expected behavior
You should see the standard angular cli default page.
The text was updated successfully, but these errors were encountered: