Skip to content
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

Problem with npm run build #2739

Closed
1 task done
alvares opened this issue Jan 19, 2024 · 2 comments
Closed
1 task done

Problem with npm run build #2739

alvares opened this issue Jan 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@alvares
Copy link

alvares commented Jan 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug


src/services/WbotServices/wbotMessageListener.ts:137:20 - error TS2339: Property 'options' does not exist on type 'Location'.

137     ? msg.location.options || "Localization"
                       ~~~~~~~

src/services/WbotServices/wbotMessageListener.ts:150:35 - error TS2339: Property 'options' does not exist on type 'Location'.

150   msg.body += "|" + (msg.location.options ? msg.location.options : (msg.location.latitude + ", " + msg.location.longitude))
                                      ~~~~~~~

src/services/WbotServices/wbotMessageListener.ts:150:58 - error TS2339: Property 'options' does not exist on type 'Location'.

150   msg.body += "|" + (msg.location.options ? msg.location.options : (msg.location.latitude + ", " + msg.location.longitude))

I followed this issue canove/whaticket-community#604 but when "npm run build" return this error

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Expected behavior

error "options"

Steps to Reproduce the Bug or Issue

npm run build

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

typwscript, nodejs

Additional context

No response

@alvares alvares added the bug Something isn't working label Jan 19, 2024
@alechkos
Copy link
Collaborator

#2614

@fredcarj
Copy link

Hi! I've solved this problem with these changes:
In the archive: backend/src/services/WbotServices/wbotMessageListener.ts

Lines 219 and 220
from:
msg.location.description
? msg.location.description
to:
msg.location.options
? msg.location.options

and the lines 248 and 249
from:
? msg.location.description
? Localization - ${msg.location.description.split("\\n")[0]}
to:
? msg.location.options
? Localization - ${msg.location.options}

image

@alechkos alechkos closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants