-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TypeError: The "key" argument must be of type string or an instance of Buffer, TypedArray, DataView, or KeyObject. Received undefined #305
Comments
Hmmm, what version of Node.js are you using? |
Same error. Node version - v14.15.3 |
same problem node - v14.15.3 |
Do you only see this when using next dev? Or is it with next build too? |
Do we have any fix for this issue yet? I tried to resolve it but didn't manage to get it fixed. I had the project running by removing the googleapis package on the 451 – Unavailable For Legal Reasons |
Hello. I had the same problem. It comes from the @lib/google with the crypto library. So I removed the entire @lib/google and all references (with youtube) in index.js. And now it works fine. |
@leerob not sure if this helps or not, but i think the cypher is generated through OpenSSL and between v.14.15.3 to the current LTS version there is a lot of changes in this area ( due to patched OpenSSL vulnerability ). So maybe it doesn't work because you have the newer version with the patched OpenSSL stuff and the others don't. Check the changelogs |
This works tho a lot of work 😅 |
I'm pretty sure the problem is that people haven't fully followed the instructions, and they haven't copied I'd imagine the workaround is either
|
See leerob#305 It would probably be useful for folks just cloning the repo and immediately running things (i.e. me) to warn them that they haven't fully set things up. I'm not sure if `console.warn()` is the best method for this, I'm no expert in node or nextjs.
See leerob#305 This only covers the problem for a single environment variable. If the rest of `.env.local` isn't set, then you will run into problems later. For instance `/guestbook` will not load because it tries to use redis, and `REDIS_URL` isn't set. I figured if we covered the index page though it might be nice. IDK, maybe all this extra error handling isn't worth it, and we should just crash and burn early.
I see this as soon as i download and run with
yarn
yarn dev
The text was updated successfully, but these errors were encountered: