Comments (2)
I got the same error just now:
C:\path\to\my\project\node_modules\@cmdcode\tapscript\node_modules\@cmdcode\buff-utils\dist\module.mjs:353
const { getRandomValues } = crypto ?? globalThis.crypto ?? window.crypto;
^
ReferenceError: crypto is not defined
at Object.<anonymous> (C:\path\node_modules\@cmdcode\tapscript\node_modules\@cmdcode\buff-utils\dist\module.mjs:353:29)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.require.extensions.<computed> [as .js] (C:\path\to\AppData\Local\npm-cache\_npx\<random looking num here>\node_modules\ts-node\src\index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (C:\path\to\my\project\index.ts:1:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
from tapscript.
FYI if crypto
is not defined, try updating your nodejs to version 19 or above.
from tapscript.
Related Issues (20)
- `Tx.encode` fail for file larger than 260 byte HOT 1
- Missing crypto import statement HOT 2
- ReferenceError: SecretKey is not defined HOT 5
- How to generate secret keys HOT 1
- witness problem HOT 1
- Larger witness data (ordinal inscription) lead to OP_SUCCESSx rejection HOT 5
- non-mandatory-script-verify-flag (Witness program hash mismatch) HOT 2
- crypto is not defined HOT 2
- Taptree Example sounds strange HOT 5
- PSBT support HOT 10
- {"code":-26,"message":"non-mandatory-script-verify-flag (Witness program hash mismatch)"} HOT 6
- Tap script inquiry HOT 3
- Witness program hash mismatch HOT 2
- Custom Address Prefix HOT 1
- Ordinal Provenance HOT 13
- ReferenceError: crypto is not defined HOT 1
- Public key version reserved for soft-fork upgrades HOT 3
- Add Metadata to inscription HOT 1
- Error: Size greater than stream: 38133322 > 56518 HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tapscript.