• Register
0 votes
1k views

Problem :

I am facing below error as :

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

After I tried to do the installation of Angular 6.

Check the detailed error as below :

ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,76): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,78): error TS1109: Expression expected.
7.5k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

This problem always shows up due to the version mismatch. To resolve this problem you need to do the following changes in the package.json file.

Step 1 : Go to your package.json and modify the "rxjs": "^6.0.0" to "rxjs": "6.0.0"

Step 2 : Now Run the npm update in your project.

Step 3 : If you are using the rxjs-compat then you must also need to do following in order to fixed your issue. Please change your rxjs-compat version from "rxjs-compat": "^6.2.2" to "rxjs-compat": "6.2.2"

Please note that there is no need to change the typescript version. I am currently using : "typescript": "~2.7.2"

OR

You just need to do some of the changes in your package.json

Go to your package.json and just modify "rxjs": "^6.0.0" to "rxjs": "6.0.0"

Then run the npm update in your project

OR

 

I had the same error while using the angular 6 having the rxjs@6.4.0 but I just downgraded it to the rxjs@6.3.3 and it worked.

Hope this will help in resolving your issue!

38.6k points

Related questions

0 votes
1 answer 38 views
38 views
Problem: I got an error of: node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. after the installation of Angular 6. Check the error: 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.
asked Apr 26 anika11 32.2k points
0 votes
1 answer 13 views
13 views
Problem: I got an error of node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
asked May 1 ochena 23.3k points
0 votes
1 answer 57 views
57 views
Problem: I'm looking for a solution to the following problem:Ldap error 81 server down win32 err 58
asked Jun 5 Neal Morton 1.6k points
0 votes
1 answer 2 views
2 views
Problem: Has no exported member 'observable'.
asked 1 day ago Rada Gracelynn 104k points
0 votes
1 answer 251 views
251 views
Problem: How can I fix > Module not found: error: can't resolve 'rxjs/add/operator/map' ?
asked May 5 sumaiya simi 43.9k points
0 votes
1 answer 64 views
64 views
Problem: I am doing code on my PC it's working but not working on a laptop. It seems funny but this is true. Please help.
asked May 3 salim1 60.6k points
0 votes
1 answer 7 views
7 views
Problem: Can't resolve 'rxjs/add/operator/map'.
asked Jul 26 Aurelia Maja 78.4k points
0 votes
1 answer 22 views
22 views
Problem: I am completely lost into this, do a favour : Cannot find module 'rxjs-compat/observable'.
asked May 30 Junia Phoebe 83.8k points
0 votes
1 answer 42 views
42 views
Problem: Help me with this complication: Cannot find module 'rxjs-compat/observable'.
asked May 29 Diederich Raf 120k points
0 votes
1 answer 48 views
48 views
Problem: Where ought to I seek an answer? >Module not found: error: can't resolve 'core-js/es7/reflect'.
asked May 8 Ashok Dileep 21.5k points