quentintaranpino / nostrcheck-server

Nostr server for hosting media upload (NIP96 & Blossom), nostr address (NIP05), lightning redirects and much more.
https://nostrcheck.me/api/v2
MIT License
65 stars 14 forks source link

Can't build nostrcheck #24

Closed PastaGringo closed 2 months ago

PastaGringo commented 3 months ago

Describe the bug

Hi ;) I tried to setup nostrcheck manually without docker by doing the same tasks as the bash install script (without running it). During npm build task, I have an error and I can't build the nostrcheck. Error code below.

To Reproduce npm build

Expected behavior Build success

Desktop (please complete the following information):

Additional context

Error code:

Spoiler - click to show the error ``` $~/nostrcheck-api-ts$ npm run build > nostrcheck-api-ts@0.5.0.1474 build > tsc node_modules/@redis/bloom/dist/commands/cuckoo/index.d.ts:10:26 - error TS7016: Could not find a declaration file for module './RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/RESERVE.js' implicitly has an 'any' type. 10 import * as RESERVE from './RESERVE'; ~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/cuckoo/index.d.ts:11:27 - error TS7016: Could not find a declaration file for module './SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/SCANDUMP.js' implicitly has an 'any' type. 11 import * as SCANDUMP from './SCANDUMP'; ~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:15:29 - error TS2306: File '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/MADD.d.ts' is not a module. 15 MADD: typeof import("./bloom/MADD"); ~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:16:29 - error TS2306: File '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/MADD.d.ts' is not a module. 16 mAdd: typeof import("./bloom/MADD"); ~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:17:32 - error TS7016: Could not find a declaration file for module './bloom/MEXISTS'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/MEXISTS.js' implicitly has an 'any' type. 17 MEXISTS: typeof import("./bloom/MEXISTS"); ~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:18:32 - error TS7016: Could not find a declaration file for module './bloom/MEXISTS'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/MEXISTS.js' implicitly has an 'any' type. 18 mExists: typeof import("./bloom/MEXISTS"); ~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:19:32 - error TS7016: Could not find a declaration file for module './bloom/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/RESERVE.js' implicitly has an 'any' type. 19 RESERVE: typeof import("./bloom/RESERVE"); ~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:20:32 - error TS7016: Could not find a declaration file for module './bloom/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/RESERVE.js' implicitly has an 'any' type. 20 reserve: typeof import("./bloom/RESERVE"); ~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:21:33 - error TS7016: Could not find a declaration file for module './bloom/SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/SCANDUMP.js' implicitly has an 'any' type. 21 SCANDUMP: typeof import("./bloom/SCANDUMP"); ~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:22:33 - error TS7016: Could not find a declaration file for module './bloom/SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/SCANDUMP.js' implicitly has an 'any' type. 22 scanDump: typeof import("./bloom/SCANDUMP"); ~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:33:30 - error TS7016: Could not find a declaration file for module './count-min-sketch/MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/count-min-sketch/MERGE.js' implicitly has an 'any' type. 33 MERGE: typeof import("./count-min-sketch/MERGE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:34:30 - error TS7016: Could not find a declaration file for module './count-min-sketch/MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/count-min-sketch/MERGE.js' implicitly has an 'any' type. 34 merge: typeof import("./count-min-sketch/MERGE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:35:30 - error TS7016: Could not find a declaration file for module './count-min-sketch/QUERY'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/count-min-sketch/QUERY.js' implicitly has an 'any' type. 35 QUERY: typeof import("./count-min-sketch/QUERY"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:36:30 - error TS7016: Could not find a declaration file for module './count-min-sketch/QUERY'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/count-min-sketch/QUERY.js' implicitly has an 'any' type. 36 query: typeof import("./count-min-sketch/QUERY"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:57:32 - error TS7016: Could not find a declaration file for module './cuckoo/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/RESERVE.js' implicitly has an 'any' type. 57 RESERVE: typeof import("./cuckoo/RESERVE"); ~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:58:32 - error TS7016: Could not find a declaration file for module './cuckoo/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/RESERVE.js' implicitly has an 'any' type. 58 reserve: typeof import("./cuckoo/RESERVE"); ~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:59:33 - error TS7016: Could not find a declaration file for module './cuckoo/SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/SCANDUMP.js' implicitly has an 'any' type. 59 SCANDUMP: typeof import("./cuckoo/SCANDUMP"); ~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:60:33 - error TS7016: Could not find a declaration file for module './cuckoo/SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/SCANDUMP.js' implicitly has an 'any' type. 60 scanDump: typeof import("./cuckoo/SCANDUMP"); ~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:75:28 - error TS7016: Could not find a declaration file for module './t-digest/MAX'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MAX.js' implicitly has an 'any' type. 75 MAX: typeof import("./t-digest/MAX"); ~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:76:28 - error TS7016: Could not find a declaration file for module './t-digest/MAX'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MAX.js' implicitly has an 'any' type. 76 max: typeof import("./t-digest/MAX"); ~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:77:30 - error TS7016: Could not find a declaration file for module './t-digest/MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MERGE.js' implicitly has an 'any' type. 77 MERGE: typeof import("./t-digest/MERGE"); ~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:78:30 - error TS7016: Could not find a declaration file for module './t-digest/MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MERGE.js' implicitly has an 'any' type. 78 merge: typeof import("./t-digest/MERGE"); ~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:79:28 - error TS7016: Could not find a declaration file for module './t-digest/MIN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MIN.js' implicitly has an 'any' type. 79 MIN: typeof import("./t-digest/MIN"); ~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:80:28 - error TS7016: Could not find a declaration file for module './t-digest/MIN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MIN.js' implicitly has an 'any' type. 80 min: typeof import("./t-digest/MIN"); ~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:81:33 - error TS7016: Could not find a declaration file for module './t-digest/QUANTILE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/QUANTILE.js' implicitly has an 'any' type. 81 QUANTILE: typeof import("./t-digest/QUANTILE"); ~~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:82:33 - error TS7016: Could not find a declaration file for module './t-digest/QUANTILE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/QUANTILE.js' implicitly has an 'any' type. 82 quantile: typeof import("./t-digest/QUANTILE"); ~~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:83:29 - error TS7016: Could not find a declaration file for module './t-digest/RANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RANK.js' implicitly has an 'any' type. 83 RANK: typeof import("./t-digest/RANK"); ~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:84:29 - error TS7016: Could not find a declaration file for module './t-digest/RANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RANK.js' implicitly has an 'any' type. 84 rank: typeof import("./t-digest/RANK"); ~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:85:30 - error TS7016: Could not find a declaration file for module './t-digest/RESET'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RESET.js' implicitly has an 'any' type. 85 RESET: typeof import("./t-digest/RESET"); ~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:86:30 - error TS7016: Could not find a declaration file for module './t-digest/RESET'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RESET.js' implicitly has an 'any' type. 86 reset: typeof import("./t-digest/RESET"); ~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:87:32 - error TS7016: Could not find a declaration file for module './t-digest/REVRANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/REVRANK.js' implicitly has an 'any' type. 87 REVRANK: typeof import("./t-digest/REVRANK"); ~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:88:32 - error TS7016: Could not find a declaration file for module './t-digest/REVRANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/REVRANK.js' implicitly has an 'any' type. 88 revRank: typeof import("./t-digest/REVRANK"); ~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:89:37 - error TS7016: Could not find a declaration file for module './t-digest/TRIMMED_MEAN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN.js' implicitly has an 'any' type. 89 TRIMMED_MEAN: typeof import("./t-digest/TRIMMED_MEAN"); ~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:90:36 - error TS7016: Could not find a declaration file for module './t-digest/TRIMMED_MEAN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN.js' implicitly has an 'any' type. 90 trimmedMean: typeof import("./t-digest/TRIMMED_MEAN"); ~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:105:30 - error TS7016: Could not find a declaration file for module './top-k/QUERY'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/top-k/QUERY.js' implicitly has an 'any' type. 105 QUERY: typeof import("./top-k/QUERY"); ~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:106:30 - error TS7016: Could not find a declaration file for module './top-k/QUERY'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/top-k/QUERY.js' implicitly has an 'any' type. 106 query: typeof import("./top-k/QUERY"); ~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:107:32 - error TS7016: Could not find a declaration file for module './top-k/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/top-k/RESERVE.js' implicitly has an 'any' type. 107 RESERVE: typeof import("./top-k/RESERVE"); ~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/index.d.ts:108:32 - error TS7016: Could not find a declaration file for module './top-k/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/top-k/RESERVE.js' implicitly has an 'any' type. 108 reserve: typeof import("./top-k/RESERVE"); ~~~~~~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:8:22 - error TS7016: Could not find a declaration file for module './MAX'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MAX.js' implicitly has an 'any' type. 8 import * as MAX from './MAX'; ~~~~~~~ node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:9:24 - error TS7016: Could not find a declaration file for module './MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MERGE.js' implicitly has an 'any' type. 9 import * as MERGE from './MERGE'; ~~~~~~~~~ node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:10:22 - error TS7016: Could not find a declaration file for module './MIN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MIN.js' implicitly has an 'any' type. 10 import * as MIN from './MIN'; ~~~~~~~ node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:11:27 - error TS7016: Could not find a declaration file for module './QUANTILE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/QUANTILE.js' implicitly has an 'any' type. 11 import * as QUANTILE from './QUANTILE'; ~~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:12:23 - error TS7016: Could not find a declaration file for module './RANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RANK.js' implicitly has an 'any' type. 12 import * as RANK from './RANK'; ~~~~~~~~ node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:13:24 - error TS7016: Could not find a declaration file for module './RESET'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RESET.js' implicitly has an 'any' type. 13 import * as RESET from './RESET'; ~~~~~~~~~ node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:14:26 - error TS7016: Could not find a declaration file for module './REVRANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/REVRANK.js' implicitly has an 'any' type. 14 import * as REVRANK from './REVRANK'; ~~~~~~~~~~~ node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:15:31 - error TS7016: Could not find a declaration file for module './TRIMMED_MEAN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN.js' implicitly has an 'any' type. 15 import * as TRIMMED_MEAN from './TRIMMED_MEAN'; ~~~~~~~~~~~~~~~~ node_modules/nostr-tools/lib/types/nip44.d.ts:1:29 - error TS7016: Could not find a declaration file for module '@noble/hashes/utils'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@noble/hashes/utils.js' implicitly has an 'any' type. Try `npm i --save-dev @types/noble__hashes` if it exists or add a new declaration (.d.ts) file containing `declare module '@noble/hashes/utils';` 1 import { utf8ToBytes } from '@noble/hashes/utils'; ~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:202:29 - error TS2306: File '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/MADD.d.ts' is not a module. 202 MADD: typeof import("@redis/bloom/dist/commands/bloom/MADD"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:203:29 - error TS2306: File '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/MADD.d.ts' is not a module. 203 mAdd: typeof import("@redis/bloom/dist/commands/bloom/MADD"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:204:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/bloom/MEXISTS'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/MEXISTS.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/bloom/MEXISTS';` 204 MEXISTS: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:205:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/bloom/MEXISTS'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/MEXISTS.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/bloom/MEXISTS';` 205 mExists: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:206:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/bloom/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/RESERVE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/bloom/RESERVE';` 206 RESERVE: typeof import("@redis/bloom/dist/commands/bloom/RESERVE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:207:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/bloom/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/RESERVE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/bloom/RESERVE';` 207 reserve: typeof import("@redis/bloom/dist/commands/bloom/RESERVE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:208:33 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/bloom/SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/SCANDUMP.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/bloom/SCANDUMP';` 208 SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:209:33 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/bloom/SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/bloom/SCANDUMP.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/bloom/SCANDUMP';` 209 scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:220:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/count-min-sketch/MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/count-min-sketch/MERGE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/count-min-sketch/MERGE';` 220 MERGE: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:221:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/count-min-sketch/MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/count-min-sketch/MERGE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/count-min-sketch/MERGE';` 221 merge: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:222:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/count-min-sketch/QUERY'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/count-min-sketch/QUERY.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/count-min-sketch/QUERY';` 222 QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:223:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/count-min-sketch/QUERY'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/count-min-sketch/QUERY.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/count-min-sketch/QUERY';` 223 query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:244:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/cuckoo/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/RESERVE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/cuckoo/RESERVE';` 244 RESERVE: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:245:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/cuckoo/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/RESERVE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/cuckoo/RESERVE';` 245 reserve: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:246:33 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/cuckoo/SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/SCANDUMP.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/cuckoo/SCANDUMP';` 246 SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:247:33 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/cuckoo/SCANDUMP'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/cuckoo/SCANDUMP.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/cuckoo/SCANDUMP';` 247 scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:262:28 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/MAX'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MAX.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/MAX';` 262 MAX: typeof import("@redis/bloom/dist/commands/t-digest/MAX"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:263:28 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/MAX'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MAX.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/MAX';` 263 max: typeof import("@redis/bloom/dist/commands/t-digest/MAX"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:264:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MERGE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/MERGE';` 264 MERGE: typeof import("@redis/bloom/dist/commands/t-digest/MERGE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:265:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/MERGE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MERGE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/MERGE';` 265 merge: typeof import("@redis/bloom/dist/commands/t-digest/MERGE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:266:28 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/MIN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MIN.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/MIN';` 266 MIN: typeof import("@redis/bloom/dist/commands/t-digest/MIN"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:267:28 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/MIN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/MIN.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/MIN';` 267 min: typeof import("@redis/bloom/dist/commands/t-digest/MIN"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:268:33 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/QUANTILE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/QUANTILE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/QUANTILE';` 268 QUANTILE: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:269:33 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/QUANTILE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/QUANTILE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/QUANTILE';` 269 quantile: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:270:29 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/RANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RANK.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/RANK';` 270 RANK: typeof import("@redis/bloom/dist/commands/t-digest/RANK"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:271:29 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/RANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RANK.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/RANK';` 271 rank: typeof import("@redis/bloom/dist/commands/t-digest/RANK"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:272:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/RESET'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RESET.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/RESET';` 272 RESET: typeof import("@redis/bloom/dist/commands/t-digest/RESET"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:273:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/RESET'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/RESET.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/RESET';` 273 reset: typeof import("@redis/bloom/dist/commands/t-digest/RESET"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:274:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/REVRANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/REVRANK.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/REVRANK';` 274 REVRANK: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:275:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/REVRANK'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/REVRANK.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/REVRANK';` 275 revRank: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:276:37 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN';` 276 TRIMMED_MEAN: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:277:36 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN';` 277 trimmedMean: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:292:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/top-k/QUERY'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/top-k/QUERY.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/top-k/QUERY';` 292 QUERY: typeof import("@redis/bloom/dist/commands/top-k/QUERY"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:293:30 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/top-k/QUERY'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/top-k/QUERY.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/top-k/QUERY';` 293 query: typeof import("@redis/bloom/dist/commands/top-k/QUERY"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:294:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/top-k/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/top-k/RESERVE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/top-k/RESERVE';` 294 RESERVE: typeof import("@redis/bloom/dist/commands/top-k/RESERVE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/redis/dist/index.d.ts:295:32 - error TS7016: Could not find a declaration file for module '@redis/bloom/dist/commands/top-k/RESERVE'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@redis/bloom/dist/commands/top-k/RESERVE.js' implicitly has an 'any' type. If the '@redis/bloom' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@redis/bloom/dist/commands/top-k/RESERVE';` 295 reserve: typeof import("@redis/bloom/dist/commands/top-k/RESERVE"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lib/nostr/NIP04.ts:2:28 - error TS7016: Could not find a declaration file for module '@noble/hashes/utils'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@noble/hashes/utils.js' implicitly has an 'any' type. Try `npm i --save-dev @types/noble__hashes` if it exists or add a new declaration (.d.ts) file containing `declare module '@noble/hashes/utils';` 2 import { hexToBytes } from '@noble/hashes/utils' ~~~~~~~~~~~~~~~~~~~~~ src/lib/nostr/core.ts:2:28 - error TS7016: Could not find a declaration file for module '@noble/hashes/utils'. '/home/nostrcheck/nostrcheck-api-ts/node_modules/@noble/hashes/utils.js' implicitly has an 'any' type. Try `npm i --save-dev @types/noble__hashes` if it exists or add a new declaration (.d.ts) file containing `declare module '@noble/hashes/utils';` 2 import { bytesToHex } from '@noble/hashes/utils' ~~~~~~~~~~~~~~~~~~~~~ Found 85 errors in 7 files. Errors Files 2 node_modules/@redis/bloom/dist/commands/cuckoo/index.d.ts:10 36 node_modules/@redis/bloom/dist/commands/index.d.ts:15 8 node_modules/@redis/bloom/dist/commands/t-digest/index.d.ts:8 1 node_modules/nostr-tools/lib/types/nip44.d.ts:1 36 node_modules/redis/dist/index.d.ts:202 1 src/lib/nostr/NIP04.ts:2 1 src/lib/nostr/core.ts:2 ```
quentintaranpino commented 3 months ago

Hello πŸ˜€

Could you send me the packages you have installed?

npm list

Thanks!

PastaGringo commented 3 months ago

Of course 😁

Here is the list:

nostrcheck-api-ts@0.5.0.1474 /home/nostrcheck/nostrcheck-api-ts
β”œβ”€β”€ @types/bcrypt@5.0.2
β”œβ”€β”€ @types/config@3.3.0
β”œβ”€β”€ @types/cors@2.8.13
β”œβ”€β”€ @types/express-session@1.17.10
β”œβ”€β”€ @types/express@4.17.21
β”œβ”€β”€ @types/fluent-ffmpeg@2.1.21
β”œβ”€β”€ @types/markdown-it@13.0.7
β”œβ”€β”€ @types/multer@1.4.7
β”œβ”€β”€ @types/mysql2@1.0.0 (git+ssh://git@github.com/types/mysql2.git#89378b2cb3974ea8cdd1d633b8f056e54e5d2384)
β”œβ”€β”€ @types/node@20.11.17
β”œβ”€β”€ @types/sha256@0.2.0
β”œβ”€β”€ @types/validator@13.11.1
β”œβ”€β”€ @types/webtorrent@0.109.7
β”œβ”€β”€ bcrypt@5.1.1
β”œβ”€β”€ blurhash@2.0.5
β”œβ”€β”€ config@3.3.9
β”œβ”€β”€ cors@2.8.5
β”œβ”€β”€ ejs@3.1.9
β”œβ”€β”€ eslint-config-codely@3.0.0
β”œβ”€β”€ eslint-plugin-jest@27.2.3
β”œβ”€β”€ eslint@8.46.0
β”œβ”€β”€ express-rate-limit@7.1.5
β”œβ”€β”€ express-session@1.18.0
β”œβ”€β”€ express@4.18.2
β”œβ”€β”€ fastq@1.15.0
β”œβ”€β”€ file-type@18.5.0
β”œβ”€β”€ fluent-ffmpeg@2.1.2
β”œβ”€β”€ helmet@7.0.0
β”œβ”€β”€ markdown-it@14.0.0
β”œβ”€β”€ multer@1.4.5-lts.1
β”œβ”€β”€ mysql2@3.9.7
β”œβ”€β”€ nodemon@3.0.3
β”œβ”€β”€ nostr-tools@2.1.7
β”œβ”€β”€ redis@4.6.13
β”œβ”€β”€ rotating-file-stream@3.1.1
β”œβ”€β”€ sha256@0.2.0
β”œβ”€β”€ sharp@0.33.4
β”œβ”€β”€ ts-node@10.9.1
β”œβ”€β”€ tslog@4.9.1
β”œβ”€β”€ typescript@5.3.3
β”œβ”€β”€ ut_metadata@4.0.3
β”œβ”€β”€ validator@13.11.0
β”œβ”€β”€ vitest@1.0.1
β”œβ”€β”€ websocket-polyfill@0.0.3
└── webtorrent@2.1.36
PastaGringo commented 2 months ago

I finally used the install.sh script and everything seems OK now :) Closing the issue!