. Advertisement .
..3..
. Advertisement .
..4..
Hi everyone, I’m learning about angular. While working, I try install Angular 6. As a result, I get the message:
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.
node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
What can I do about the “error in node_modules/rxjs/internal/types.d.ts(81,44): error ts1005: ‘;’ expected.” issue? Is there a better approach?
The cause: The “error in node_modules/rxjs/internal/types.d.ts(81,44): error ts1005: ‘;’ expected” could be the result of version mismatch.
Solution: You must make the adjustments below in order to address your issue in your package.json file.
Firstly: Access to
package.json
and change"rxjs": "^6.0.0"
to"rxjs": "6.0.0"
.Secondly: Start your project’s
npm install
. (The typescript version doesn’t need to be altered.)package.json
needs to be modifiedGo to
package.json
to modify"rxjs": "^6.0.0"
into"rxjs": "6.0.0"
Run
npm update
in the project.