twilio / twilio-chat-demo-android

Chat API Demo Application for Android
MIT License
62 stars 51 forks source link

IONIC 3 Twlio error : Cannot find name 'unknown' #103

Closed tarunmishra592 closed 4 years ago

tarunmishra592 commented 5 years ago

Hey @twlio Can you please help with this error. I am using twlio-chat in ionic 3.

[app-scripts] [13:13:00] typescript: node_modules/twilio-chat/lib/session.d.ts, line: 38 [app-scripts] Cannot find name 'unknown'. [app-scripts] L38: addCommand(action: string, params: Object): Promise; [app-scripts] Cannot find name 'unknown'. [app-scripts] [13:13:00] typescript: node_modules/twilio-sync/lib/syncmap.d.ts, line: 63 [app-scripts] L63: forEach(handler: any): Promise; [app-scripts] L64: private shouldIgnoreEvent; [app-scripts] Initializers are not allowed in ambient contexts. [app-scripts] [13:13:00] typescript: node_modules/twilsock/lib/protocol/messages/reply.d.ts, line: 5 [app-scripts] L4: readonly method: Protocol.MessageType; [app-scripts] L5: readonly payload_type = "application/json"; [app-scripts] L6: readonly status: {

aleksandrsivanovs commented 5 years ago

H!

it seems like old typescript definition (judging by https://github.com/angular/angular-cli/issues/5693)

can you update to latest twilio-chat and latest typescript definitions? (also, it's better to ask JS/TS questions in https://github.com/twilio/twilio-chat-console-webapp.js)

Aleksandrs

pretzelpanda13 commented 4 years ago

service-worker/service-worker.d.ts(204,55): error TS2304: Cannot find name 'unknown'.

same issue?

berkus commented 4 years ago

Could be, but it's not related to android client. It's better to ask JS/TS questions in https://github.com/twilio/twilio-chat-console-webapp.js

berkus commented 4 years ago

Closing as not relevant to android SDK.