Continue incremental implementation of ts in Cashtab
Convert Common components (except CustomIcons.js) that are still js to ts
CustomIcons.js is actually a bigger change and should be its own diff
Differential D18353
[Cashtab] Convert JS common components to ts Authored by bytesofman on Jul 10 2025, 16:46. Tags None Subscribers None
Details
Continue incremental implementation of ts in Cashtab Convert Common components (except CustomIcons.js) that are still js to ts CustomIcons.js is actually a bigger change and should be its own diff npm test
Diff Detail
Event TimelineComment Actions Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Tail of the build log: Run `npm audit` for details. > ecash-lib@3.2.0 build > tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist /work/modules/ecash-agora /work/abc-ci-builds/cashtab-tests added 272 packages, and audited 275 packages in 1s 37 packages are looking for funding run `npm fund` for details 7 vulnerabilities (1 low, 5 moderate, 1 high) To address all issues, run: npm audit fix Run `npm audit` for details. > ecash-agora@2.1.0 build > tsc && tsc -p ./tsconfig.build.json /work/cashtab /work/abc-ci-builds/cashtab-tests npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead npm warn deprecated eslint@8.56.0: This version is no longer supported. Please see https://eslint.org/version-support for other options. added 1396 packages, and audited 2833 packages in 14s 284 packages are looking for funding run `npm fund` for details 14 vulnerabilities (1 low, 9 moderate, 2 high, 2 critical) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. > cashtab@3.30.2 build > node scripts/build.js Creating an optimized production build... Failed to compile. TS2307: Cannot find module 'assets/paybutton.webp' or its corresponding type declarations. [0m [90m 5 |[39m [36mimport[39m [33m*[39m [36mas[39m [33mReact[39m [36mfrom[39m [32m'react'[39m[33m;[39m [90m 6 |[39m [36mimport[39m styled [36mfrom[39m [32m'styled-components'[39m[33m;[39m [31m[1m>[22m[39m[90m 7 |[39m [36mimport[39m [33mPayButton[39m [36mfrom[39m [32m'assets/paybutton.webp'[39m[33m;[39m [90m |[39m [31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m [90m 8 |[39m [36mimport[39m [33mXecxSrc[39m [36mfrom[39m [32m'assets/xecx-logomark.png'[39m[33m;[39m [90m 9 |[39m [36mimport[39m [33mSolSrc[39m [36mfrom[39m [32m'assets/solanaLogoMark.png'[39m[33m;[39m [90m 10 |[39m [36mimport[39m [33mTetherSrc[39m [36mfrom[39m [32m'assets/tether.png'[39m[33m;[39m[0m Build cashtab-tests failed with exit code 1 Comment Actions Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Tail of the build log:
Run `npm audit` for details.
> ecash-lib@3.2.0 build
> tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist
/work/modules/ecash-agora /work/abc-ci-builds/cashtab-tests
added 272 packages, and audited 275 packages in 1s
37 packages are looking for funding
run `npm fund` for details
7 vulnerabilities (1 low, 5 moderate, 1 high)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
> ecash-agora@2.1.0 build
> tsc && tsc -p ./tsconfig.build.json
/work/cashtab /work/abc-ci-builds/cashtab-tests
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
npm warn deprecated eslint@8.56.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
added 1396 packages, and audited 2833 packages in 14s
284 packages are looking for funding
run `npm fund` for details
14 vulnerabilities (1 low, 9 moderate, 2 high, 2 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
> cashtab@3.30.2 build
> node scripts/build.js
Creating an optimized production build...
Failed to compile.
TS2307: Cannot find module 'assets/popout.svg' or its corresponding type declarations.
[0m [90m 6 |[39m [36mimport[39m styled [36mfrom[39m [32m'styled-components'[39m[33m;[39m
[90m 7 |[39m [36mimport[39m [33mCashtab[39m [36mfrom[39m [32m'assets/cashtab_xec.png'[39m[33m;[39m
[31m[1m>[22m[39m[90m 8 |[39m [36mimport[39m [33mPopOut[39m [36mfrom[39m [32m'assets/popout.svg'[39m[33m;[39m
[90m |[39m [31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m
[90m 9 |[39m
[90m 10 |[39m [36minterface[39m [33mExtensionHeaderProps[39m {
[90m 11 |[39m path[33m?[39m[33m:[39m string[33m;[39m[0m
Build cashtab-tests failed with exit code 1
| ||||||||||||||||||||||||||||