celerio-angular-quickstart icon indicating copy to clipboard operation
celerio-angular-quickstart copied to clipboard

Cannot find module 'rxjs-compat/Observable'

Open hilout opened this issue 7 years ago • 4 comments
trafficstars

I have this error when i do ng serve --proxy-config proxy.conf.json : Cannot find module 'rxjs-compat/Observable' i installed npm install [email protected] module but i still have thie error.

hilout avatar Jul 09 '18 16:07 hilout

same issue for me too.....

bucherarnold avatar Aug 09 '18 06:08 bucherarnold

ERROR in node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.

Same for me!

palaciosdiego avatar Aug 15 '18 23:08 palaciosdiego

you are building with a higher version of angular cli (probably the last version which cause a few more errors) i suggest you to downgrade your version to use v1.6.8

Uninstall your current version

npm uninstall -g @angular/cli

Install v1.6.8

npm install -g @angular/[email protected] // or whatever version you need

Run Using Angular CLI v1.6.8


cd celerio-angular-quickstart/quickstart/web

//fix for fsevents platform issue, install forced (only if you are using windows platform) npm install [email protected] -f

npm i @angular/[email protected] npm i @angular/[email protected] npm i primeng npm i font-awesome

//fix for style.css (quickstart\web\src\styles.css) //remove '~' sign from line 4 @import '~https://fonts.googleapis.com/icon?family=Material+Icons';

ng serve --proxy-config proxy.conf.json -o

bucherarnold avatar Aug 16 '18 06:08 bucherarnold

Even downgrade angular cli version and follow the steps above I get this error ERROR in src/app/app.component.ts(24,15): error TS2304: Cannot find name 'module'. src/app/entities/author/author-detail.component.ts(19,15): error TS2304: Cannot find name 'module'.

i 「wdm」: Failed to compile.

palaciosdiego avatar Aug 16 '18 22:08 palaciosdiego