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

Viewed 2914

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}`);
3 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

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

You should update your typescript latest version.

Related