Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR in node_modules/@types/ramda/index.d.ts:373:64 - error TS1110: Type expected

Tags:

angular

When we run our build, we found the following error

ERROR in node_modules/@types/ramda/index.d.ts:373:64 - error TS1110: Type expected.
373     (<S1 extends string, S2 extends string>(s1: S1, s2: S2) => `${S1}${S2}`);
like image 450
Charles Wu Avatar asked Feb 17 '21 06:02

Charles Wu


2 Answers

In our package.json, we use

"@types/ramda": "^0.27.32",

But when I actually go into check the @types/ramda/package.json, it is 0.27.38

So I go back to my package.json in project and set

"@types/ramda": "0.27.32",

reinstall node_modules

It goes back

like image 93
Charles Wu Avatar answered Nov 11 '22 07:11

Charles Wu


We had the same problem and this is not ramda. You must update TypeScript to the latest version.

like image 37
Florian Boudot Avatar answered Nov 11 '22 07:11

Florian Boudot