Reputation: 3857
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?
Upvotes: 5
Views: 797
Reputation: 3857
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
Upvotes: 6