I get the following error trying to use the infura calljs. What loader am i missing? I do not see any such import on the file? Where can I get the Demo.json from? Do I have to point the path to the file to get rid of the error?
const fs = require("fs");
const { abi } = JSON.parse(fs.readFileSync("Demo.json"));
Error: Cannot find module 'demo-eth-tx-master\infura-transaction\call.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
I get the following error trying to use the infura calljs. What loader am i missing? I do not see any such import on the file? Where can I get the Demo.json from? Do I have to point the path to the file to get rid of the error? const fs = require("fs"); const { abi } = JSON.parse(fs.readFileSync("Demo.json"));
\demo-eth-tx-master>node infura-transaction/call.js internal/modules/cjs/loader.js:582 throw err; ^
Error: Cannot find module 'demo-eth-tx-master\infura-transaction\call.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15) at Function.Module._load (internal/modules/cjs/loader.js:506:25) at Function.Module.runMain (internal/modules/cjs/loader.js:741:12) at startup (internal/bootstrap/node.js:285:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)