Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Passing "united states" as a attribute for the geocoder, like
const data: any = await geocoder.geocode(location);
but getting Error:
return target.apply(this, arguments);
^
TypeError: Cannot read properties of undefined (reading 'View')
at /home/aximsoft/Project/secuvy/api/command-center/node_modules/node-geocoder/lib/geocoder/heregeocoder.js:81:36
at tryCatcher (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/util.js:16:23)
at Promise.successAdapter [as _fulfillmentHandler0] (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/nodeify.js:23:30)
at Promise._settlePromise (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/promise.js:601:21)
at Promise._settlePromise0 (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues (/home/aximsoft/Project/secuvy/api/command-center/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (node:internal/timers:478:21)
at process.topLevelDomainCallback (node:domain:160:15)
at process.callbackTrampoline (node:internal/async_hooks:128:24)