pmrt / whatshidden

What's hidden? - Read revoked WhatsApp messages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERR_IMPORT_ASSERTION_TYPE_MISSING

tonyzack opened this issue · comments

TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///Users/mymac/MyFolders/res/proj/api/whatshidden/package.json" needs an import assertion of type "json"
at new NodeError (node:internal/errors:372:5)
at validateAssertions (node:internal/modules/esm/assert:82:15)
at defaultLoad (node:internal/modules/esm/load:24:3)
at ESMLoader.load (node:internal/modules/esm/loader:407:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:326:22)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:345:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:304:34)
at async ModuleWrap. (node:internal/modules/esm/module_job:82:21)
at async Promise.all (index 12) {
code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
}

Screen Shot 2022-06-07 at 2 42 47 PM

NodeJs : v17.8.0
npm : 8.12.1

Did you find a fix for this ?

Did you find a fix for this ?

Sorry, I should have archived this repo. Unfortunately, this project is very old. It worked well back then but since then whatsapp has changed the whatsapp web client a lot, it even doesn't need a mobile phone connected now so it would have to be reversed engineered again, the decryption part is also deprecated (you need to use the keys to decrypt the downloaded media).

My recommendation is to look for unofficial whatsapp APIs, that's the highest level of abstraction you're gonna find to rig up something similar to this, maybe they still have the motivation to keep playing the cat-and-mouse game.