Search code examples
asp.net-coresignalrasp.net-core-signalr

Signalr.js not found


I've just followed the "Get started with SignalR on ASP.NET Core" article and I get an error when I open the browser. The error is: GET https://localhost:5001/lib/signalr/signalr.js 404 (Not Found)

Article link: https://learn.microsoft.com/en-us/aspnet/core/signalr/get-started?tabs=visual-studio-code&view=aspnetcore-2.1

The same error happens when I try to run their own example: https://github.com/aspnet/Docs/tree/master/aspnetcore/signalr/get-started/sample

.NET Core SDK: dotnet-sdk-2.1.300-preview1-008174-win-x64

NPM version: 5.8.0

VSCode: 1.22.2

Any help, please!?


Solution

  • As mentioned in the instructions for Visual Studio:

    1. Copy the signalr.js file from node_modules\@aspnet\signalr\dist\browser to the lib folder in your project.