-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't read property generateSecretASCII of undefined #145
Comments
If you are using import syntax, change it to express one. Like this: const speakeasy = require('speakeasy'); |
Quick solution: go to the source of this and change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to create the image, with the following code,
var secret = generateSecret({
name: "mySecret",
})
The line 458 in index.js generates an error
....
var key = this.generateSecretASCII(length, symbols);
this
is undefined here. (I get an errorcan't read property generateSecretASCII of undefined
)When I change this to
exports
, it works. team, kindly find out and guide to fix the issue.The text was updated successfully, but these errors were encountered: