-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error npm run build #604
Comments
estou com o mesmo problema , nao encontrei em lugar algum a soluçao , src/services/WbotServices/wbotMessageListener.ts:152:77 - error TS2339: Property 'description' does not exist on type 'Location'. 152 await ticket.update({ lastMessage: msg.type === "location" ? msg.location.description ? "Localization - " + msg.location.description.split('\n')[0] : "Localization" : msg.body });
src/services/WbotServices/wbotMessageListener.ts:152:124 - error TS2339: Property 'description' does not 152 await ticket.update({ lastMessage: msg.type === "location" ? msg.location.description ? "Localization - " + msg.location.description.split('\n')[0] : "Localization" : msg.body });
src/services/WbotServices/wbotMessageListener.ts:162:35 - error TS2339: Property 'description' does not exist on type 'Location'. 162 msg.body += "|" + (msg.location.description ? msg.location.description : (msg.location.latitude + ", " + msg.location.longitude))
|
well, you have to change in this file backend/src/services/WbotServices/wbotMessageListener.ts the following: const verifyMessage = async ( const quotedMsg = await verifyQuotedMessage(msg); await ticket.update({ await CreateMessageService({ messageData }); |
Thanks @egorky for your solution |
Mano boa noite estou com esses erros abaixo npm run build
src/services/WbotServices/wbotMessageListener.ts:152:77 - error TS2339: Property 'description' does not exist on type 'Location'. 152 await ticket.update({ lastMessage: msg.type === "location" ? msg.location.description ? "Localization - " + msg.location.description.split('\n')[0] : "Localization" : msg.body }); src/services/WbotServices/wbotMessageListener.ts:152:124 - error TS2339: Property 'description' does not exist on type 'Location'. 152 await ticket.update({ lastMessage: msg.type === "location" ? msg.location.description ? "Localization - " + msg.location.description.split('\n')[0] : "Localization" : msg.body }); src/services/WbotServices/wbotMessageListener.ts:162:35 - error TS2339: Property 'description' does not exist on type 'Location'. 162 msg.body += "|" + (msg.location.description ? msg.location.description : (msg.location.latitude + ", " + msg.location.longitude)) src/services/WbotServices/wbotMessageListener.ts:162:62 - error TS2339: Property 'description' does not exist on type 'Location'. 162 msg.body += "|" + (msg.location.description ? msg.location.description : (msg.location.latitude + ", " + msg.location.longitude)) Found 4 errors. Poderia me passar uma possivel solução desde já agradecido ! |
Hi, here's the correction in my fork. Credits @egorky |
That's solved but my chats getting delayed now. Any idea? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When running
npm run build
I am receiving the following error:deploy@admistrador-Standard-PC-i440FX-PIIX-1996:~/whaticket/backend$ npm run build
src/services/WbotServices/wbotMessageListener.ts:152:77 - error TS2339: Property 'description' does not exist on type 'Location'.
152 await ticket.update({ lastMessage: msg.type === "location" ? msg.location.description ? "Localization - " + msg.location.description.split('\n')[0] : "Localization" : msg.body });
~~~~~~~~~~~
src/services/WbotServices/wbotMessageListener.ts:152:124 - error TS2339: Property 'description' does not exist on type 'Location'.
152 await ticket.update({ lastMessage: msg.type === "location" ? msg.location.description ? "Localization - " + msg.location.description.split('\n')[0] : "Localization" : msg.body });
~~~~~~~~~~~
src/services/WbotServices/wbotMessageListener.ts:162:35 - error TS2339: Property 'description' does not exist on type 'Location'.
162 msg.body += "|" + (msg.location.description ? msg.location.description : (msg.location.latitude + ", " + msg.location.longitude))
~~~~~~~~~~~
src/services/WbotServices/wbotMessageListener.ts:162:62 - error TS2339: Property 'description' does not exist on type 'Location'.
162 msg.body += "|" + (msg.location.description ? msg.location.description : (msg.location.latitude + ", " + msg.location.longitude))
~~~~~~~~~~~
Found 4 errors.
The text was updated successfully, but these errors were encountered: