thunderhub
thunderhub copied to clipboard
Thunderhub 0.13.31 won't start with node 23.11.1
Describe the problem/bug
Thunderhub won't start
Your environment
- Version of ThunderHub: 0.13.31
- Deployment method:
- Other relevant environment details:
To Reproduce Steps to reproduce the behavior:
- git clone https://github.com/apotdevin/thunderhub.git
- cd thunderhub
- npm install
- npm run build
- npm run
Expected behavior Thunderhub shall start
Actual behavior Error is printed and Thunderhub exits
Screenshots/Links
th@th:~$ git clone https://github.com/apotdevin/thunderhub.git
Cloning into 'thunderhub'...
remote: Enumerating objects: 18054, done.
remote: Counting objects: 100% (700/700), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 18054 (delta 606), reused 488 (delta 487), pack-reused 17354 (from 3)
Receiving objects: 100% (18054/18054), 30.67 MiB | 13.32 MiB/s, done.
Resolving deltas: 100% (11205/11205), done.
th@th:~$ git checkout tags/v0.13.31
th@th:~/thunderhub$ npm install
npm warn deprecated @types/[email protected]: This is a stub types definition. cron provides its own type definitions, so you do not need this installed.
npm warn deprecated [email protected]: This module is not used anymore, and has been replaced by @npmcli/package-json
npm warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm warn deprecated [email protected]: The `apollo-datasource` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm warn deprecated [email protected]: The `apollo-server-plugin-base` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm warn deprecated [email protected]: The `apollo-server-types` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm warn deprecated [email protected]: The `apollo-server-errors` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm warn deprecated @apollo/[email protected]: The use of GraphQL Playground in Apollo Server was supported in previous versions, but this is no longer the case as of December 31, 2022. This package exists for v4 migration purposes only. We do not intend to resolve security issues or other bugs with this package if they arise, so please migrate away from this to [Apollo Server's default Explorer](https://www.apollographql.com/docs/apollo-server/api/plugin/landing-pages) as soon as possible.
npm warn deprecated [email protected]: The `apollo-server-env` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/utils.fetcher` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm warn deprecated [email protected]: The `apollo-reporting-protobuf` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/usage-reporting-protobuf` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm warn deprecated [email protected]: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
> [email protected] prepare
> husky install
husky - Git hooks installed
added 1949 packages, and audited 1950 packages in 5m
251 packages are looking for funding
run `npm fund` for details
46 vulnerabilities (6 low, 13 moderate, 25 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.
th@th:~/thunderhub$ npm run build
> [email protected] prebuild
> rimraf dist && rimraf .next
> [email protected] build
> npm run build:nest && npm run build:next
> [email protected] build:nest
> nest build
> [email protected] build:next
> cd src/client && next build
./src/components/chart/BarChart.tsx
61:6 Warning: React Hook useMemo has a missing dependency: 'dataKey'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
./src/components/chart/HorizontalBarChart.tsx
139:6 Warning: React Hook useMemo has a missing dependency: 'maxValue'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
./src/components/table/DebouncedInput.tsx
30:6 Warning: React Hook useEffect has missing dependencies: 'debounce' and 'onChange'. Either include them or remove the dependency array. If 'onChange' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps
info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
✓ Linting and checking validity of types
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
✓ Creating an optimized production build
✓ Compiled successfully
✓ Collecting page data
✓ Collecting build traces
✓ Finalizing page optimization
Route (pages) Size First Load JS
┌ λ / 23.9 kB 557 kB
├ /_app 0 B 243 kB
├ λ /404 344 B 243 kB
├ λ /amboss 3.92 kB 250 kB
├ λ /chain 5.69 kB 265 kB
├ λ /channels 6.61 kB 310 kB
├ λ /channels/[slug] 4.44 kB 250 kB
├ λ /chat 6.63 kB 255 kB
├ λ /dashboard 586 B 247 kB
├ λ /forwards 23.5 kB 545 kB
├ λ /leaderboard 3.62 kB 281 kB
├ λ /lnmarkets 5.2 kB 248 kB
├ λ /login 5.54 kB 249 kB
├ λ /peers 6.29 kB 265 kB
├ λ /rebalance 9.28 kB 287 kB
├ λ /settings 8.66 kB 257 kB
├ λ /settings/dashboard 458 B 247 kB
├ λ /sso 2.78 kB 246 kB
├ λ /stats 7.02 kB 253 kB
├ λ /swap 11.2 kB 289 kB
├ λ /tools 7.38 kB 250 kB
└ λ /transactions 5.08 kB 523 kB
+ First Load JS shared by all 247 kB
├ chunks/framework-80ea8c0f440c6a32.js 45.4 kB
├ chunks/main-5aa2e2aecccdc7ca.js 33 kB
├ chunks/pages/_app-d39bed6ec28d27ed.js 162 kB
├ chunks/webpack-48250e071ff7a0c5.js 2.17 kB
└ css/8ffc6fcd155f3877.css 4.25 kB
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
th@th:~/thunderhub$ npm start
> [email protected] start
> cross-env NODE_ENV=production nest start
/home/th/thunderhub/node_modules/@nestjs/schedule/dist/decorators/interval.decorator.js:12
const [name, intervalTimeout] = (0, util_1.isString)(nameOrTimeout)
^
TypeError: (0 , util_1.isString) is not a function
at Interval (/home/th/thunderhub/node_modules/@nestjs/schedule/dist/decorators/interval.decorator.js:12:57)
at Object.<anonymous> (/home/th/thunderhub/src/server/modules/api/amboss/amboss.service.ts:186:12)
at Module._compile (node:internal/modules/cjs/loader:1734:14)
at Object..js (node:internal/modules/cjs/loader:1899:10)
at Module.load (node:internal/modules/cjs/loader:1469:32)
at Function._load (node:internal/modules/cjs/loader:1286:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.call (node:internal/modules/cjs/loader:1491:12)
at Module.mod.require (/home/th/thunderhub/node_modules/next/src/server/require-hook.ts:69:26)
th@th:~/thunderhub$ ls
CHANGELOG.md LICENSE codegen.yml flake.lock nest-cli.json package-lock.json schema.gql src tsconfig.json
Dockerfile README.md dist flake.nix node_modules package.json scripts tsconfig.build.json
Additional context
th@th:~/thunderhub$ nodejs -v
v23.11.1
th@th:~/thunderhub$ npm -v
10.9.2
+1
npm run start:prod
> [email protected] start:prod
> node dist/main
/home/thunderhub/thunderhub/node_modules/@nestjs/schedule/dist/decorators/interval.decorator.js:12
const [name, intervalTimeout] = (0, util_1.isString)(nameOrTimeout)
^
TypeError: (0 , util_1.isString) is not a function
at Interval (/home/thunderhub/thunderhub/node_modules/@nestjs/schedule/dist/decorators/interval.decorator.js:12:57)
at Object.<anonymous> (/home/thunderhub/thunderhub/dist/modules/api/amboss/amboss.service.js:370:29)
at Module._compile (node:internal/modules/cjs/loader:1692:14)
at Object..js (node:internal/modules/cjs/loader:1824:10)
at Module.load (node:internal/modules/cjs/loader:1427:32)
at Module._load (node:internal/modules/cjs/loader:1250:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.<anonymous> (node:internal/modules/cjs/loader:1449:12)
at mod.require (/home/thunderhub/thunderhub/node_modules/next/dist/server/require-hook.js:64:28)
Node.js v24.3.0
rm -rf node_modules package-lock.json helped, after that did npm install and npm run build