question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng2-signalr can't be compiled

See original GitHub issue

Hi,

E:\opensource-project\temp-aspnet\angularcli\d3-ng2-demo-master>ng serve ** NG Live Development Server is running on http://localhost:4200 ** Hash: fb506f72cd9ce73e44ce Time: 35399ms chunk {0} main.bundle.js, main.bundle.js.map (main) 51.7 kB {2} [initial] [rendered] chunk {1} styles.bundle.js, styles.bundle.js.map (styles) 129 kB {3} [initial] [rendered] chunk {2} vendor.bundle.js, vendor.bundle.js.map (vendor) 3.07 MB [initial] [rendered] chunk {3} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]

ERROR in E:/opensource-project/temp-aspnet/angularcli/d3-ng2-demo-master/node_modules/ng2-signalr/lib/testing/helpers/activated.route.mock.d.ts (4,22) : Class ‘ActivatedRouteMock’ incorrectly implements interface ‘ActivatedRoute’. Property ‘paramMap’ is missing in type ‘ActivatedRouteMock’. webpack: Failed to compile.

E:\opensource-project\temp-aspnet\angularcli\d3-ng2-demo-master>npm ls ng2-signalr d3-ng2-demo@0.1.1 E:\opensource-project\temp-aspnet\angularcli\d3-ng2-demo-master ±- UNMET PEER DEPENDENCY @angular/core@4.0.0 -> E:\opensource-project\temp-aspnet\angularcli\d3-ng2-demo-master\node_modules.4.0.0@@angular\core `-- ng2-signalr@1.0.9 -> E:\opensource-project\temp-aspnet\angularcli\d3-ng2-demo-master\node_modules.1.0.9@ng2-signalr

Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
askdongcommented, Mar 30, 2017

Yes, I compiled against angular 4.0.0. Now, It can be compiled OK after I upgrade to version 2.0.2.

thank you! also thanks to @DaveMonag !

0reactions
HNeukermanscommented, Mar 30, 2017

are you comiling against angular 4.0.0 ? As a workaround I think you can remove the ‘implements ActivatedRoute’ in the activated.route.mock.d.ts file in side you ng2-signalr node_module

so instead of ActivatedRouteMock implements ActivatedRoute make it ActivatedRouteMock

In the meantime I will fix the issue …

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng2-signalr/README.md at master - GitHub
Contribute to HNeukermans/ng2-signalr development by creating an account on GitHub. ... Cannot retrieve contributors at this time. ng2-signalr Features: ...
Read more >
ng2-signalr Error: Failed to connect. Error - asp.net
im using this lib and I configure the signlaR like this demo and nothing crash, but when I acess the pageComponent it cant...
Read more >
ASP.NET, SignalR, Angular 2 And Typescript Real Time Clock
Create Angular 2 folder on the root of your project and then app folder, where we place only Angular2 code and in Angular2...
Read more >
ng2-signalr - npm
Latest version: 10.1.0, last published: 2 years ago. Start using ng2-signalr in your project by running `npm i ng2-signalr`.
Read more >
Angular 2 + ASP.NET WebApi + SignalR in VS2017
To fix it, open package.json, find rxjs package and change its verion: “rxjs”: “5.4.2”,. Then save, right – click the package.json and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found