Search
Get Started
d-I❄
discord.js - Imagine ❄
I am new to Typescript and I am trying to convert my Js code to ts
Original message was deleted
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
58,353
Members
View on Discord
D
d.js toolkit
•
12/23/23, 2:27 PM
What
's your exact discord
.js
npm list discord.js
npm list discord.js
and node
node -v
node -v
version
?
Not a discord
.js issue
? Check out
#other
-js
-ts
.
Consider reading
#how
-to
-get
-help to improve your question
!
Explain what exactly your issue is
.
Post the full error stack trace
, not just the top part
!
Show your code
!
Issue solved
? Press the button
!
D
d.js docs
APP
•
12/23/23, 2:34 PM
To share long code snippets
, use a service like
gist
,
sourcebin
,
starbin
, or similar instead of posting them as large code blocks or files
.
Original message was deleted
S
skyhan
•
12/23/23, 9:45 PM
can do it with bun js
S
skyhan
•
12/23/23, 9:46 PM
https://bun.sh/docs/runtime/modules#using-import-and-require-together
Bun
Module resolution – Runtime | Bun Docs
Bun uses ESM and implements an extended version of the Node
.js module resolution algorithm
.
I
Inky
•
12/24/23, 3:24 AM
So you are using bun
?
I
Inky
•
12/24/23, 3:24 AM
You shouldn
’t be running w
/ node
.js if you are