Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] isJSONEncodable is not a function #139

Closed
1 task done
Nik-Novak opened this issue Jan 9, 2024 · 3 comments
Closed
1 task done

[Bug] isJSONEncodable is not a function #139

Nik-Novak opened this issue Jan 9, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Nik-Novak
Copy link

What happened?

  1. Clone repo
  2. yarn install; yarn dev

$ cross-env NODE_ENV=development nodemon --exec node -r @swc-node/register src/main.ts
[nodemon] 2.0.22
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: ts,json
[nodemon] starting node -r @swc-node/register src/main.ts
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'en' ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'en' completed
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'fr' ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'fr' completed
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'ru' ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'ru' completed
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'uk' ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'uk' completed
info [09/01/2024 - 10:45:58] [typesafe-i18n], updating types ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], updating types completed

error [09/01/2024 - 10:46:00] (ERROR) Unhandled rejection : isJSONEncodable is not a function
> /home/dev/projects/MindKnight/tscord/node_modules/discord.js/src/managers/ApplicationCommandManager.js:234
> /home/dev/projects/MindKnight/tscord/node_modules/discord.js/src/managers/ApplicationCommandManager.js:174
> :null
> /home/dev/projects/MindKnight/tscord/node_modules/discord.js/src/managers/ApplicationCommandManager.js:174
> /home/dev/projects/MindKnight/tscord/node_modules/discordx/src/Client.ts:747
> node:internal/process/task_queues:95
> /home/dev/projects/MindKnight/tscord/node_modules/discordx/src/Client.ts:581
> /home/dev/projects/MindKnight/tscord/src/events/ready.ts:31

Reproduction

main repo Jan 9 2024

Relevant log output

1) Clone repo
2) yarn install; yarn dev

$ cross-env NODE_ENV=development nodemon --exec node -r @swc-node/register src/main.ts
[nodemon] 2.0.22
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: ts,json
[nodemon] starting `node -r @swc-node/register src/main.ts`
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'en' ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'en' completed
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'fr' ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'fr' completed
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'ru' ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'ru' completed
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'uk' ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], importing translations for locale 'uk' completed
info [09/01/2024 - 10:45:58] [typesafe-i18n], updating types ...
info [09/01/2024 - 10:45:58] [typesafe-i18n], updating types completed


error [09/01/2024 - 10:46:00] (ERROR) Unhandled rejection : isJSONEncodable is not a function
        > /home/dev/projects/MindKnight/tscord/node_modules/discord.js/src/managers/ApplicationCommandManager.js:234
        > /home/dev/projects/MindKnight/tscord/node_modules/discord.js/src/managers/ApplicationCommandManager.js:174
        > <anonymous>:null
        > /home/dev/projects/MindKnight/tscord/node_modules/discord.js/src/managers/ApplicationCommandManager.js:174
        > /home/dev/projects/MindKnight/tscord/node_modules/discordx/src/Client.ts:747
        > node:internal/process/task_queues:95
        > /home/dev/projects/MindKnight/tscord/node_modules/discordx/src/Client.ts:581
        > /home/dev/projects/MindKnight/tscord/src/events/ready.ts:31

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Nik-Novak Nik-Novak added the bug Something isn't working label Jan 9, 2024
@Nik-Novak
Copy link
Author

ubuntu 22.04, node 20.10.0

@barthofu
Copy link
Owner

Hey!

There is currently problems with the latest Node LTS (20.10.0), maybe using the v18 should fix the problem.

These problems will be adressed in the future release of TSCord !

@barthofu
Copy link
Owner

barthofu commented Mar 4, 2024

Fixed in #155

@barthofu barthofu closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants