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
I am experiencing an issue running the dev environment using the "fake" option. Is there an obvious mistake I am making? Would any other information be helpful?
charles@matebook:~/github/fork-explorer$ deno --version
deno 1.9.2 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.5
typescript 4.2.2
⋮
INFO Download https://cdn.esm.sh/v41/[email protected]/deno/d3-ease.js
INFO Download https://cdn.esm.sh/v41/[email protected]/deno/d3-timer.js
INFO {} /pages/stats.js • 968KB
INFO {} main.js • 926B
INFO - Public Assets
INFO ∆ /favicon.ico • 10KB
INFO ∆ /favicon.png • 10KB
INFO Done in 7490ms
⋮
charles@matebook:~/github/fork-explorer$ ./run-server.sh
Check file:///home/charles/github/fork-explorer/index.ts
error: TS2322 [ERROR]: Type '"real"' is not assignable to type '"fake"'.
mode: "real",
~~~~
at file:///home/charles/github/fork-explorer/config/config.ts:88:3
The expected type comes from property 'mode' which is declared here on type 'Config'
mode: "fake";
~~~~
at file:///home/charles/github/fork-explorer/config/config.ts:5:3
TS2367 [ERROR]: This condition will always return 'false' since the types '"fake"' and '"real"' have no overlap.
const createBlock = config.mode === "real" ? createRealBlock : createFakeBlock;
~~~~~~~~~~~~~~~~~~~~~~
at file:///home/charles/github/fork-explorer/backend/blocks/index.ts:44:23
TS2367 [ERROR]: This condition will always return 'false' since the types '"fake"' and '"real"' have no overlap.
const createBlock = config.mode === "real" ? createRealBlock : createFakeBlock;
~~~~~~~~~~~~~~~~~~~~~~
at file:///home/charles/github/fork-explorer/backend/blocks/index.ts:71:23
TS2367 [ERROR]: This condition will always return 'false' since the types '"fake"' and '"real"' have no overlap.
const callGetblockcount = config.mode === "real" ? getblockcount : async () => await Promise.resolve(1000);
~~~~~~~~~~~~~~~~~~~~~~
at file:///home/charles/github/fork-explorer/backend/blocks/index.ts:72:29
Found 4 errors.
⋮
charles@matebook:~/github/fork-explorer$
The text was updated successfully, but these errors were encountered:
I am experiencing an issue running the dev environment using the "fake" option. Is there an obvious mistake I am making? Would any other information be helpful?
The text was updated successfully, but these errors were encountered: