I'm following the guide located here:
https://experienceleague.adobe.com/docs/id-service/using/implementation/ecid-a4t-target.html?lang=en
However when I call visitor.generatePayload I get the following error:
TypeError: visitor.generatePayload is not a function
at app.get (C:\aa\NodeMaster\index.js:34:32)
at Layer.handle [as handle_request] (C:\aa\NodeMaster\node_modules\express\lib\router\layer.js:95:5)
at next (C:\aa\NodeMaster\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\aa\NodeMaster\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\aa\NodeMaster\node_modules\express\lib\router\layer.js:95:5)
at C:\aa\NodeMaster\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\aa\NodeMaster\node_modules\express\lib\router\index.js:341:12)
at next (C:\aa\NodeMaster\node_modules\express\lib\router\index.js:275:10)
at cookieParser (C:\aa\NodeMaster\node_modules\cookie-parser\index.js:71:5)
at Layer.handle [as handle_request] (C:\aa\NodeMaster\node_modules\express\lib\router\layer.js:95:5)
Does anybody know what this may be attributed to? Am I missing a dependency?