5
votes

When using SignalR with hubs, you need to include a script with a src of "/signalr/hubs" - i.e. with no .js extension. When I try to use this with RequireJS, it insists on adding the '.js' extension which means that hub proxy is never loaded.

Any ideas how to stop it doing that?

1

1 Answers

6
votes

Answering my own question for benefit of others: I found a 'noext' plugin for RequireJS here which solves issue.

As stated on that page, this relates to Issue 18 of RequireJS