Skip to content

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

Closed
@ghost

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

cartant commented on Feb 7, 2019

@cartant
Collaborator

Closing this as a dupe of #4512 as I believe that is the underlying problem.

AliAdravi

AliAdravi commented on Feb 23, 2019

@AliAdravi

Change to from rxjs 6.4.0 TO "rxjs": "6.0.0",
It worked for me

aleRozo

aleRozo commented on Feb 25, 2019

@aleRozo

Cambie de rxjs 6.4.0 a "rxjs": "6.0.0",
funcionó para mí

@AliAdravi can you show me how did you do it?

patriziofilloramo

patriziofilloramo commented on Feb 27, 2019

@patriziofilloramo

@aleRozo
npm install rxjs@6.0.0 --save

thanks @AliAdravi

dherenj

dherenj commented on Mar 1, 2019

@dherenj

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

rahulpagada commented on Mar 2, 2019

@rahulpagada
  1. "rxjs": "^6.0.0" change "rxjs": "6.0.0"
  2. and next go to terminal
  3. and install npm using this command "npm i"
  4. enjoy
aleRozo

aleRozo commented on Mar 4, 2019

@aleRozo
rahulpagada

rahulpagada commented on Mar 5, 2019

@rahulpagada

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

Charuka09 commented on Mar 17, 2019

@Charuka09

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

aleRozo commented on Mar 20, 2019

@aleRozo

Si aún estás enfrentando el problema, ve a package.json

quite rxjs y agregue rxjs-compat también, "rxjs-compat": "^ 6.4.0" a "rxjs-compat": "6.4.0",

cambiar la versión de typscript a 2.8

ejecutar npm instalar
Esto funcionará para usted!

Thank you, this did work for me

rafmos

rafmos commented on Mar 20, 2019

@rafmos

@aleRozo
npm install rxjs@6.0.0 --save

thanks @AliAdravi

Worked for me. Thanks.

michaelBielang

michaelBielang commented on Mar 20, 2019

@michaelBielang

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

fahrimz commented on Mar 23, 2019

@fahrimz

@realsony
I got the same error. Changing "rxjs": "^6.0.0" to "6.0.0" fix the error

10 remaining items

AnshulRatlam

AnshulRatlam commented on May 7, 2019

@AnshulRatlam

@aleRozo
npm install rxjs@6.0.0 --save

thanks @AliAdravi

it work for me

fabiosoli

fabiosoli commented on May 11, 2019

@fabiosoli

You need to do some changes in package.json

  1. Go to package.json and modify "rxjs": "^6.0.0" to "rxjs": "6.0.0"
  2. Then run npm update in your project

It worked for me

Anyoks

Anyoks commented on May 15, 2019

@Anyoks

@aleRozo
npm install rxjs@6.0.0 --save
thanks @AliAdravi

Worked for me!

basantkumarpogeyan

basantkumarpogeyan commented on May 25, 2019

@basantkumarpogeyan

npm install rxjs@6.0.0 --save
work for me
Thanks very much

Marimuthu-Aathi

Marimuthu-Aathi commented on Jun 11, 2019

@Marimuthu-Aathi

npm install rxjs@6.0.0 --save
Worked for me,
thanks

dssagar93

dssagar93 commented on Jun 17, 2019

@dssagar93

It worked. Thanks

fabriciobatalha

fabriciobatalha commented on Jun 28, 2019

@fabriciobatalha

You need to do some changes in package.json

  1. Go to package.json and modify "rxjs": "^6.0.0" to "rxjs": "6.0.0"
  2. Then run npm update in your project

Thank you, @cordsac.

lianmaung

lianmaung commented on Jun 28, 2019

@lianmaung

Doing this "npm install rxjs@6.0.0 --save" solved my problem. Thanks!

NarenShalem

NarenShalem commented on Jul 10, 2019

@NarenShalem

npm uninstall rxjs (higher version of rxjs above 6.0.0)
npm install rxjs@6.0.0 --save

This is worked for me!

jocelo

jocelo commented on Jul 11, 2019

@jocelo

Change to from rxjs 6.4.0 TO "rxjs": "6.0.0",
It worked for me

Worked for me as well!

feryuk

feryuk commented on Jul 12, 2019

@feryuk

Cambie de rxjs 6.4.0 a "rxjs": "6.0.0",
funcionó para mí

@AliAdravi can you show me how did you do it?

Open up package.json, and change "rxjs": "^6.0.0", to "rxjs": "6.0.0"
I hope it helps.

RyanOC

RyanOC commented on Jul 12, 2019

@RyanOC

Why did this work?

esteban-gs

esteban-gs commented on Jul 14, 2019

@esteban-gs
  1. "rxjs": "^6.0.0" change "rxjs": "6.0.0"
  2. and next go to terminal
  3. and install npm using this command "npm i"
  4. enjoy

This worked for me. Thanks

locked as resolved and limited conversation to collaborators on Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @RyanOC@jocelo@Anyoks@dssagar93@cartant

        Issue actions

          ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. · Issue #4540 · ReactiveX/rxjs