This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ReferenceError: crypto is not defined #3845
Labels
need/triage
Needs initial labeling and prioritization
Comments
Weird, it looks like it's pulling in the browser version of the sha2 hash. What version of node are you running? |
@achingbrain |
Please upgrade to 14 or 16 - 12 isn't supported any more. |
@achingbrain thanks, that was my issue! |
Great! |
@achingbrain looks like the same issue persists when calling from electron (v14);
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version:
0.58.2
Platform:
5.4.0-81-generic # 91-Ubuntu SMP Thu Jul 15 19:09:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Severity:
High - The main functionality of the application does not work, API breakage, repo format breakage, etc.
Description:
When starting up an ipfs node I get this error:
Steps to reproduce the error:
test.js:
package.json:
Run
node test.js
and you'll get the same error.I've also zipped this replication project and attached it:
ipfsTest.zip
Open the file and run
npm i
thennode test.js
to get the same error.The text was updated successfully, but these errors were encountered: