跳至內容

NodeJS (Nest) app works locally, but fails with TS2688 on Beasntalk

0

My NestJS app starts locally (linux/Mac), but Beanstalk deploy fails with many TS2688 errors like this:
node_modules/kafkajs/types/index.d.ts TS2688: Cannot find type definition file for 'node'
And
TS2339: Property 'id' does not exist on type 'FreInterval'.
as well.

How I can debug/fix that?
TIA, Vitaly

已提問 6 年前檢視次數 795 次

1 個回答
1

adding

"@types/node"

to dependencies into package.json fixed this issue.

已回答 6 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。