Angular Twillio聊天模块错误TS1086无法在环境上下文中声明访问者

Angular Twillio聊天模块错误TS1086无法在环境上下文中声明访问者,angular,npm,twilio,angular-cli,Angular,Npm,Twilio,Angular Cli,我有一个角度项目是版本控制。它在windows机器上运行良好。 但是当我对我的Ubuntu19机器进行更改时,我总是收到twillio聊天模块错误: ERROR in node_modules/twilio-chat/lib/channel.d.ts(122,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/twilio-chat/lib/channel.d.ts(123,9

我有一个角度项目是版本控制。它在windows机器上运行良好。 但是当我对我的Ubuntu19机器进行更改时,我总是收到twillio聊天模块错误:


ERROR in node_modules/twilio-chat/lib/channel.d.ts(122,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(123,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(124,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(125,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(126,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(127,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(128,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(129,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(130,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(131,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(132,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/channel.d.ts(133,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/client.d.ts(130,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/client.d.ts(131,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/client.d.ts(132,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/configuration.d.ts(13,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/configuration.d.ts(14,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/configuration.d.ts(15,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/configuration.d.ts(16,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/configuration.d.ts(17,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/configuration.d.ts(18,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/media.d.ts(23,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/media.d.ts(24,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/media.d.ts(25,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/media.d.ts(26,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(53,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(54,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(55,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(56,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(57,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(58,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(59,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(60,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(61,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/member.d.ts(62,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(48,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(49,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(50,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(51,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(52,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(53,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(54,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(55,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(56,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(57,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/message.d.ts(58,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/restpaginator.d.ts(12,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/restpaginator.d.ts(13,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/restpaginator.d.ts(14,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/services/typingindicator.d.ts(21,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/session.d.ts(30,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/session.d.ts(31,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/user.d.ts(50,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/user.d.ts(51,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/user.d.ts(52,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/user.d.ts(53,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/user.d.ts(54,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/user.d.ts(55,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/user.d.ts(56,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/user.d.ts(57,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/twilio-chat/lib/util/deferred.d.ts(7,9): error TS1086: An accessor cannot be declared in an ambient context.



我试图删除node_模块文件夹并使用
npm安装
,但它保持不变


我还将angular cli的版本从7升级到8,但运气不好

看起来您需要在Ubuntu机器上将typescript版本升级到3.7。发件人:

为了检测访问器周围的问题,TypeScript 3.7现在将发出 在.d.ts文件中获取/设置访问器,以便在TypeScript中检查 重写的访问器。所以推测sequelize是用 键入脚本3.7并发出以前版本所没有的定义文件 明白。因此,您需要升级到typescript 3.7或使用 sequelize的早期版本