Closed hakonamatata closed 7 years ago
https://angular.io/docs/ts/latest/api/core/index/OpaqueToken-class.html Looks like OpaqueToken is deprecated now, reckon that's the problem? From src/modules/signalr-module.ts
https://angular.io/docs/ts/latest/api/core/index/OpaqueToken-class.html Looks like OpaqueToken is deprecated now, reckon that's the problem? From src/modules/signalr-module.ts
Thanks @DaveMonag, I tried to comment out SignalR. Still get the same error. :weary:
If OpaqueToken is the problem (which is used in this SignalR module), then its up to @HNeukermans to make the change. Did you solve the problem another way?
@DaveMonag, Yes, I took a peak... :-), but my question is... if I change OpaqueToken to InjectionToken, then how do I keep the angular 2.4.x users happy...
Going from ng2 to ng4, means I have to do breaking changes...
Any ideas... going from OpaqueToken to a string?
If users are to stay on an old version, they should surely specify old versions of dependencies and not rely on open source projects staying outdated. Also, could you not increment the semver so that it indicates a breaking change and wont update past the current version without instruction? Also is this actually a breaking change? I was under the assumption 2 -> 4 was meant to be a non breaking update.
This doesn't seemed to have been addressed yet, right?
Using Angular 5, the compiler throws error that angular/core no longer exports OpaqueToken
WARNING in ./node_modules/ng2-signalr/src/modules/signalr-module.js 3:49-60 "export 'OpaqueToken' was not found in '@angular/core'
Any updates to this topic? As @JakobSegerslatt mentioned, ng2-signalr and Angular5 produce a warning
@feitzi Have a look at #86 and #92 , @pbriones has created a PR that fixes it. :)
I haven't added much after generating a angular project using Angular Cli, except for a few components. One using SignalR.
This warning bellow makes it impossible to compile with --prod or --aot options in Angular Cli...
package.json
app.module