Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

loader.js infura transaction call js issue #7

Open
anotherrohit opened this issue Mar 1, 2021 · 0 comments
Open

loader.js infura transaction call js issue #7

anotherrohit opened this issue Mar 1, 2021 · 0 comments

Comments

@anotherrohit
Copy link

anotherrohit commented Mar 1, 2021

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant