• Register
0 votes
629 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.
6 5 3
7,540 points

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!

9 7 4
38,600 points

Related questions

0 votes
1 answer 1.9K views
1.9K views
Problem: I am currently wondering why I am getting below compile error if I just declare variable with var or let keywords? I want to say, below code goes well: export class MyAppComponent { myRefreshClickStream$: any; constructor(){ } } While this brings the error: export class MyAppComponent { var myRefreshClickStream$: any; constructor(){ } }
asked Jan 27 jwilliam 3.9k points
0 votes
1 answer 18 views
18 views
Problem: I am getting following message when i run angualr2 program with typescript. angular is running in the development mode. call enableprodmode() to enable the production mode. What is the reason for this message is it a deployment option? Curious for feedback ?
asked Jul 16 quizzBabes 160 points
0 votes
1 answer 66 views
66 views
Problem : I have upgraded my Angular 4 project using angular-seed but now facing following error please include either "browseranimationsmodule" or "noopanimationsmodule" in your application.
asked Nov 14, 2019 peterlaw 6.9k points
0 votes
1 answer 25 views
25 views
Problem: I am naive to Angular, Webpack, Bootstrap and typescript. I have tried to write a service but it is throwing the below error while my app is bootstrapping. I am currently using ng2 2.4.2 and the angular-cli 1.0.0-beta.24. My TypeError as below: “Uncaught typeerror: ... .navigate(['/project', query]); } public extractData(res: Response) { let body = res.json(); return body || {}; } }
asked Sep 3 Raphael Pacheco 4.9k points
1 vote
2 answers 1.7K views
1.7K views
Problem : I have recently started learning Angular2. I am trying to create the component but I am facing below error. &ldquo;Is an angular component, then verify that it is part of this module.&rdquo; KIndly find below my code for your reference. import { Component } from ' ... : ` <p>This is my Hello World article</p> ` }) export class MyHelloComponent { } Kindly help me in fixing above error.
asked Mar 30 morrisBson 3.2k points