Closed

Description
Bug Report
Current Behavior
There is a missing ';' reported for types.d.ts
Date: 2019-02-07T20:57:38.886Z
Hash: d01965b30f3394f9889f
Time: 2174ms
chunk {main} main.js, main.js.map (main) 1.93 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 683 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 15.6 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 335 kB [initial] [rendered]
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.```
**Reproduction**
```
Install Angular and NPM current versions.
ng new test
npm install
ng serve --host 0.0.0.0
Output will show the error on the missing ';'
```
**Expected behavior**
Expect it to work and have the correction made for the missing semi-colon.
**Environment**
Angular CLI: 6.0.8
Node: 11.6.0
OS: darwin x64
Angular: 6.1.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.8
@angular-devkit/build-angular 0.6.8
@angular-devkit/build-optimizer 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.6.8
@angular/cli 6.0.8
@ngtools/webpack 6.0.8
@schematics/angular 0.6.8
@schematics/update 0.6.8
rxjs 6.4.0
typescript 2.7.2
webpack 4.8.3
**Possible Solution**
<!--- Only if you have suggestions on a fix for the bug -->
Activity
cartant commentedon Feb 7, 2019
Closing this as a dupe of #4512 as I believe that is the underlying problem.
AliAdravi commentedon Feb 23, 2019
Change to from rxjs 6.4.0 TO "rxjs": "6.0.0",
It worked for me
aleRozo commentedon Feb 25, 2019
@AliAdravi can you show me how did you do it?
patriziofilloramo commentedon Feb 27, 2019
@aleRozo
npm install rxjs@6.0.0 --save
thanks @AliAdravi
dherenj commentedon Mar 1, 2019
I just upgraded the Angular CLI and Core for my project to the latest versions using "ng update @angular/cli @angular/core" inside the project and the problem went away. Hope this helps!
rahulpagada commentedon Mar 2, 2019
Ajustado versão do rxjs que estava com erro (ReactiveX/rxjs#4540)
aleRozo commentedon Mar 4, 2019
rahulpagada commentedon Mar 5, 2019
If you are using rxjs-compat then you also need to do following in order to fixed the issue. change the rxjs-compat version from "rxjs-compat": "^6.2.2" to "rxjs-compat": "6.2.2"
Hope this will help!
Charuka09 commentedon Mar 17, 2019
if you are still facing the problem, go to package.json
remove rxjs and add rxjs-compat also, "rxjs-compat": "^6.4.0" to "rxjs-compat": "6.4.0",
change the typscript version to 2.8
run npm install
This will work for you!
aleRozo commentedon Mar 20, 2019
Thank you, this did work for me
rafmos commentedon Mar 20, 2019
Worked for me. Thanks.
michaelBielang commentedon Mar 20, 2019
Nothing of these solutions worked for me.
Still
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.
-arrived here by google
fahrimz commentedon Mar 23, 2019
@realsony
I got the same error. Changing "rxjs": "^6.0.0" to "6.0.0" fix the error
10 remaining items
AnshulRatlam commentedon May 7, 2019
it work for me
fabiosoli commentedon May 11, 2019
It worked for me
Anyoks commentedon May 15, 2019
Worked for me!
basantkumarpogeyan commentedon May 25, 2019
npm install rxjs@6.0.0 --save
work for me
Thanks very much
Marimuthu-Aathi commentedon Jun 11, 2019
npm install rxjs@6.0.0 --save
Worked for me,
thanks
dssagar93 commentedon Jun 17, 2019
It worked. Thanks
fabriciobatalha commentedon Jun 28, 2019
Thank you, @cordsac.
lianmaung commentedon Jun 28, 2019
Doing this "npm install rxjs@6.0.0 --save" solved my problem. Thanks!
NarenShalem commentedon Jul 10, 2019
npm uninstall rxjs (higher version of rxjs above 6.0.0)
npm install rxjs@6.0.0 --save
This is worked for me!
jocelo commentedon Jul 11, 2019
Worked for me as well!
feryuk commentedon Jul 12, 2019
Open up package.json, and change "rxjs": "^6.0.0", to "rxjs": "6.0.0"
I hope it helps.
RyanOC commentedon Jul 12, 2019
Why did this work?
esteban-gs commentedon Jul 14, 2019
This worked for me. Thanks