Free UI Resources - UI Dev Made Easy
FAQ

How to fix: node_modules/rxjs/internal/types.d.ts (81,44): error TS1005: ‘;’ expected error after installation of Angular

How to fix

node_modules/rxjs/internal/types.d.ts error TS1005 problem arises due to a version mismatch of the rxjs library. To solve your problem you need to do follow the instruction of the post.

ERROR in ../node_modules/rxjs/internal/types.d.ts(90,44): error TS1005: ';' expected.
../node_modules/rxjs/internal/types.d.ts(90,74): error TS1005: ';' expected.
../node_modules/rxjs/internal/types.d.ts(90,77): error TS1109: Expression expected.
../node_modules/rxjs/internal/types.d.ts(91,52): error TS1005: ';' expected.
../node_modules/rxjs/internal/types.d.ts(91,88): error TS1005: ';' expected.
../node_modules/rxjs/internal/types.d.ts(91,92): error TS1109: Expression expected.

i 「wdm」: Failed to compile.


OR

ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.


The problem could be caused by a version mismatch in node modules/rxjs/internal/types.d.ts(81,44): error ts1005: ‘;’ expected.

Most of the time we can fix this issue by making the one change in your package.json  file.

fix node_modules/rxjs/internal/types.d.ts (81,44): error TS1005 error.

  1. Step 1

    Go to the package.json file and change "rxjs": "^6.0.0" to "rxjs": "6.0.0" as follows (Just remove “^” ).

    fix rxjs file

  2. Step 2

    Then run the following command.

    npm install

NOTE: If you’re using rxjs-compat, you’ll need to do the following to resolve the problem.

"rxjs-compat": "^6.0.0" 


To

"rxjs-compat": "6.0.0" 


And run the npm install

back to top