Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue Feb 7, 2019 · 36 comments

Comments

@ghost
Copy link

ghost commented Feb 7, 2019

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 -->
@cartant
Copy link
Collaborator

cartant commented Feb 7, 2019

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

@cartant cartant closed this as completed Feb 7, 2019
@AliAdravi
Copy link

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

@aleRozo
Copy link

aleRozo commented Feb 25, 2019

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
Copy link

patriziofilloramo commented Feb 27, 2019

@aleRozo
npm install rxjs@6.0.0 --save

thanks @AliAdravi

@dherenj
Copy link

dherenj commented 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
Copy link

rahulpagada commented Mar 2, 2019

  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

weegetiago pushed a commit to weegetiago/BuscaCEP that referenced this issue Mar 4, 2019
@aleRozo
Copy link

aleRozo commented Mar 4, 2019 via email

@rahulpagada
Copy link

rahulpagada commented 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
Copy link

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
Copy link

aleRozo commented Mar 20, 2019

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
Copy link

rafmos commented Mar 20, 2019

@aleRozo
npm install rxjs@6.0.0 --save

thanks @AliAdravi

Worked for me. Thanks.

@michaelBielang
Copy link

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
Copy link

fahrimz commented Mar 23, 2019

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

@akshay-zz
Copy link

akshay-zz commented Mar 31, 2019

@realsony , Did you find the solution for this?

@akshay-zz
Copy link

@fahrimz , It didn't solved for me.

@michaelBielang
Copy link

@realsony , Did you find the solution for this?

i solved it but right now I cannot remember in detail how to. Sorry. Right now I use:
"rxjs": "~6.3.3" and "typescript": "~3.2.2" which works

@cordsac
Copy link

cordsac commented Apr 1, 2019

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

@andersondealmeidasp
Copy link

Thank you @cordsac ...

@kamleshbiloniya
Copy link

This worked for me in ionic@3

sudo npm install -g typescript@latest
npm i rxjs@6.3.3 rxjs-compat@6.3.3 promise-polyfill --save

@shailugit
Copy link

Go to your project directory and run the command >npm install rxjs@6.0.0 --save

@jerry-rana
Copy link

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

@sranmanpreet
Copy link

As for most of you, below command works for me as well:
npm install rxjs@6.0.0 --save

@ghost
Copy link

ghost commented Apr 25, 2019

Started using yarn today and i fixed it with

yarn add rxjs@6.0.0

@AnshulRatlam
Copy link

@aleRozo
npm install rxjs@6.0.0 --save

thanks @AliAdravi

it work for me

@fabiosoli
Copy link

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
Copy link

Anyoks commented May 15, 2019

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

Worked for me!

@basantkumarpogeyan
Copy link

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

@Marimuthu-Aathi
Copy link

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

@dssagar93
Copy link

It worked. Thanks

@fabriciobatalha
Copy link

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
Copy link

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

@NarenShalem
Copy link

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

This is worked for me!

@jocelo
Copy link

jocelo commented Jul 11, 2019

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

Worked for me as well!

@feryuk
Copy link

feryuk commented Jul 12, 2019

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
Copy link

RyanOC commented Jul 12, 2019

Why did this work?

@esteban-gs
Copy link

  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

@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests