You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2024. It is now read-only.
<process.env.PRIVATE_KEY> in both files is giving the error
var process: NodeJS.Process
Argument of type 'string | undefined' is not assignable to parameter of type 'BytesLike | ExternallyOwnedAccount | SigningKey'.
Type 'undefined' is not assignable to type 'BytesLike | ExternallyOwnedAccount | SigningKey'.ts(2345)
I tried uncommenting const ethers = require("ethers"), replacing import { ethers } from "ethers" and the error is gone but when run,
(node:10196) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
import * as fs from "fs-extra"
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:74:18)
at wrapSafe (node:internal/modules/cjs/loader:1141:20)
at Module._compile (node:internal/modules/cjs/loader:1182:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.13.0
please help!
The text was updated successfully, but these errors were encountered:
On video time 8:17:16
README.md
I followed the instructions by commenting the lines
and replacing them with
now, in deploy.ts file
and in encryptKey.ts file
<process.env.PRIVATE_KEY> in both files is giving the error
I tried uncommenting
const ethers = require("ethers")
, replacingimport { ethers } from "ethers"
and the error is gone but when run,please help!
The text was updated successfully, but these errors were encountered: