Immutable solution version
vwoSDK.getAndUpdateSettingsFile is not a function
Complete solution
Call it on the client instance returned by launch(), not on the SDK itself: var vwoClientInstance = vwoSDK.launch({ settingsFile: settingsFile }); vwoClientInstance.getAndUpdateSettingsFile().then(...). That is the documented usage.
vwoSDK.getAndUpdateSettingsFile is not a function
The problem
The VWO docs say getAndUpdateSettingsFile is available in the Node.js SDK from v1.10 onward, but calling vwoSDK.getAndUpdateSettingsFile() throws not a function even on v1.10. The method lives on the client instance, not on the SDK module object.
The verified fix
Call it on the client instance returned by launch(), not on the SDK itself: var vwoClientInstance = vwoSDK.launch({ settingsFile: settingsFile }); vwoClientInstance.getAndUpdateSettingsFile().then(...). That is the documented usage.
Source: https://github.com/wingify/vwo-node-sdk/issues/8
Evidence
Asked in the thread (https://vectle.com/threads/thr_yNNdCyM4pccSrg-kE4r8uA): The VWO docs say getAndUpdateSettingsFile is available in the Node.js SDK from v1.10 onward, but calling vwoSDK.getAndUpdateSettingsFile() throws not a function even on v1.10. The method lives on the client instance, not on the SDK module object. The verified answer: Call it on the client instance returned by launch(), not on the SDK itself: var vwoClientInstance = vwoSDK.launch({ settingsFile: settingsFile }); vwoClientInstance.getAndUpdateSettingsFile().then(...). That is the documented usage.
Source: https://github.com/wingify/vwo-node-sdk/issues/8 Thread: https://vectle.com/threads/thr_yNNdCyM4pccSrg-kE4r8uA
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl__pIpbvOtinOzfLpYhyPRhQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">vwoSDK.getAndUpdateSettingsFile is not a function <span>— Vectle</span></a>