Failed to compile after updating to version 2.17.0

#1

after installing version 2.17.0 I receive an error when running the app from Radzen studio.
I tried this on three difference machines.

ng-cli:
ERROR in src/app/techneaux-api-auth.service.ts(3,33): error TS2307: Cannot find module '@angular/http'.

ng-cli: i 「wdm」: Failed to compile.

0 Likes

#2

Hi @michael,

We will release a hotfix version shortly.

1 Like

#3

@michael the hotfix version 2.17.1 has been released. The issue should be fixed now.

0 Likes

#4

I also get the following error:

ERROR in node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
node_modules/rxjs/Subscription.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subscription'.
src/app/bht-layout/bht-layout.component.ts(3,10): error TS2305: Module '"C:/_projects/ReferenceMgt_radzen/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
src/app/bht-layout/bht-layout.component.ts(4,10): error TS2305: Module '"C:/_projects/ReferenceMgt_radzen/client/node_modules/rxjs/Observable"' has no exported member 'Observable'.

0 Likes

#5

@subzerodeluxe do you have any custom code in your application? If not please zip the meta directory and send it over to info@radzen.com. Thank you in advance!

0 Likes

#6

Or you can paste the code of the bht-layout.component.ts.

0 Likes

#7

Yes. I needed to refactor my RxJS code. Rookie mistake!
Thanks anyways for the quick reply! :slight_smile:

0 Likes

#8

Indeed the upgrade to Angular 7 brought RxJS 6.0 which has some breaking changes. We decided not to bring the rxjs-compat module in order to reduce the final application bundle size.

0 Likes