Things were going smoothly, but out of nowhere my build started failing. Here are the errors that are popping up:
ERROR in /node_modules/@types/lodash/common/function.d.ts (852,68): ';' expected.
ERROR in /node_modules/@types/lodash/common/common.d.ts (9,11): ';' expected.
ERROR in /node_modules/@types/lodash/common/common.d.ts (9,56): '(' expected.
ERROR in /node_modules/@types/lodash/common/common.d.ts (9,72): '(' expected.
ERROR in /node_modules/@types/lodash/common/common.d.ts (9,86): '(' expected.
ERROR in /node_modules/@types/lodash/common/common.d.ts (9,103): '(' expected.
Checking my package.json, I can see the following versions for typescript and lodash:
"@types/lodash": "^4.14.74",
"typescript": "2.1.5",
I attempted to install
npm i -D @types/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f09c9f94918398b08483c2dec1dec5">[email protected]</a>
, but that didn't solve the issue as npm returned an error stating No compatible version found.
Does anyone have any suggestions for a compatible version of lodash that I could try?