EddyVerbruggen / EddyVerbruggen/nativescript-nodeify
pbkdf2 exception (TypeError: createHmac is not a function) in nativescript 5.1.0 / Sidekick 1.14.1
- Dominant language
- JavaScript
- Stars
- 93
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
When my execution goes to this line
`pbkdf2.pbkdf2Sync(...)`

(`npm i pbkdf2` already)
Will appear exception
`TypeError: createHmac is not a function`

Following the callstack, seeing that this function should come from here
`require('crypto').createHmac`

Try to solve this problem with nativescript-nodeify, execute
`tns plugin add nativescript-nodeify`
The result rebuild appears (in the sidekick console interface)
`Error is: Cannot find module 'E:\xweb4\nativescript\ChinFirstApp\platforms\android\app\src\main\assets\app\tns_modules\nativescript-nodeify\patch-npm-packages.js'.`

Is there a way to make pbkdf2.pbkdf2Sync work in the nativescript-vue (android) environment?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.