openzeppelin / defender-autotask-examples Goto Github PK
View Code? Open in Web Editor NEWExample snippets for Defender Autotasks
Example snippets for Defender Autotasks
Hi,
I am trying to run the typescript example locally.
I cloned this repo. I added API keys and ran yarn install
successfully. When I run yarn start
, the script fails with this error:
TypeError: Cannot set property crypto of #<Object> which has only a getter
at Object.<anonymous> (/Users/r/projects/defender-autotask-examples/typescript/node_modules/defender-relay-client/src/api/auth.ts:5:14)
at Module._compile (node:internal/modules/cjs/loader:1205:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1259:10)
at Object.require.extensions.<computed> [as .js] (/Users/r/projects/defender-autotask-examples/typescript/node_modules/ts-node/src/index.ts:1032:44)
at Module.load (node:internal/modules/cjs/loader:1068:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1092:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/Users/r/projects/defender-autotask-examples/typescript/node_modules/defender-relay-client/src/api/index.ts:1:1)
at Module._compile (node:internal/modules/cjs/loader:1205:14)
Look like this line is failing.
I am running node v19.1.0
, tsc Version 4.1.2
, and yarn v1.22.10
on an Intel Mac.
Link: https://docs.openzeppelin.com/defender/autotasks#local-development
I'm trying to setup autotasks for local developmentand tried installing the yarn.lock with yarn install --frozen-lockfile
but it doesn't actually install anything?
What am I missing?
I'm running yarn v1.22.19 and it creates the node modules folder but with an most empty.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.