Definitelytyped: Hey, I want to start with Angular .. but whenever I run npm start the error comes

Created on 7 Nov 2018  路  8Comments  路  Source: DefinitelyTyped/DefinitelyTyped

node_modules/@types/jasmine/index.d.ts(138,30): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,47): error TS1005: ';' expected.
node_modules/@types/jasmine/index.d.ts(138,90): error TS1005: '(' expected.
node_modules/@types/jasmine/index.d.ts(138,104): error TS1005: ']' expected.
node_modules/@types/jasmine/index.d.ts(138,112): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,113): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,121): error TS1005: ')' expected.
node_modules/@types/jasmine/index.d.ts(138,147): error TS1005: '(' expected.
node_modules/@types/jasmine/index.d.ts(138,162): error TS1005: ']' expected.
node_modules/@types/jasmine/index.d.ts(138,163): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,164): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,165): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,179): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,183): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,208): error TS1005: '{' expected.
node_modules/@types/jasmine/index.d.ts(138,217): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,222): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,227): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,228): error TS1109: Expression expected.
node_modules/@types/jasmine/index.d.ts(138,230): error TS1005: ')' expected.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: tsc && concurrently "tsc -w" "lite-server"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Moritz\AppData\Roaming\npm-cache_logs\2018-11-07T17_10_56_447Z-debug.log

Most helpful comment

@michaelryan0509 The easiest way to look this up is on npm: https://www.npmjs.com/package/@types/jasmine
Under the tab "Versions" you find the corresponding typescript version for each @types/jasmine version

All 8 comments

Same issue here, because I'm using "typescript": "~2.7.2".
Downgrade to version 2.8.9 worked for me.

Dasselbe Problem hier, weil ich "Typoskript" verwende: "~ 2.7.2".
Das Downgrade auf Version 2.8.9 hat f眉r mich funktioniert.

I use TypeScript 3.1.6

I also saw this error and had to roll back to @types/jasmine version 2.8.9. Not sure if it's relevant, but I use typescript version 2.3.4. Is there a list of which versions of typescript are supported in @types/jasmine 2.8.11?

@michaelryan0509 The easiest way to look this up is on npm: https://www.npmjs.com/package/@types/jasmine
Under the tab "Versions" you find the corresponding typescript version for each @types/jasmine version

@michaelryan0509 The easiest way to look this up is on npm: https://www.npmjs.com/package/@types/jasmine
Under the tab "Versions" you find the corresponding typescript version for each @types/jasmine version

Really worked for me. Best solution in town goes to @de-dan

I have to lock the package @types/jasmine to 2.8.9 (you need to remove the "~" before 2.8.6 or 2.8.9 in package.json. then remove the package-lock.json and node_modules and "npm cache clean --force" and "npm install"

@traderMax. Thank you. that actually worked without the need to downgrade or upgrade

Hi All,

You have just change [email protected] and @types/[email protected]

Like

  1. npm install typescript/2.8.4 --save-dev
  2. npm install @types/[email protected] --save-dev

It's working 100%.

Thanks,

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Loghorn picture Loghorn  路  3Comments

jbreckmckye picture jbreckmckye  路  3Comments

victor-guoyu picture victor-guoyu  路  3Comments

ArtemZag picture ArtemZag  路  3Comments

csharpner picture csharpner  路  3Comments