So im trying to get tangleID to work to use it on a project. I am using this project.
https://github.com/TangleID/TangleID
But everytime I try and run the code i get an error message of "Mam.init is not a function".
I've tried to include the mam library as well inside then then it stops throwing an error but breaks completely by not printing out the console.log on the next line.
I found this code as well
https://gist.github.com/ender503/ecd884b07190adb79f01b0d515c3b5a3
and I'm still getting the same problem!
(node:19332) UnhandledPromiseRejectionWarning: TypeError: Mam.init is not a function
at Object.mam.createMam (C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\tic.api.js\node_modules\mam.tools.js\lib\mamClient.js:79:25)
at Object.fromMasterSeed (C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\tic.api.js\lib\ticApi.js:166:40)
at IdenityRegistry.<anonymous> (C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\@tangleid\did\lib\did\src\IdenityRegistry.js:75:55)
at step (C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\@tangleid\did\lib\did\src\IdenityRegistry.js:32:23)
at Object.next (C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\@tangleid\did\lib\did\src\IdenityRegistry.js:13:53)
at C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\@tangleid\did\lib\did\src\IdenityRegistry.js:7:71
at new Promise (<anonymous>)
at __awaiter (C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\@tangleid\did\lib\did\src\IdenityRegistry.js:3:12)
at IdenityRegistry.getTicClient (C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\@tangleid\did\lib\did\src\IdenityRegistry.js:69:63)
at IdenityRegistry.<anonymous> (C:\Users\User\Desktop\CodeProjects\TangleID\node_modules\@tangleid\did\lib\did\src\IdenityRegistry.js:101:59)
(node:19332) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which
was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:19332) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Node version v13.13.0