70 Replies
Choose between using ESM and CJS, don't try to use ESM code in a CJS setup. Whatever you did with your code, that's your problem.
but it's not in ESM(that's all I have btw)
![](https://cdn.answeroverflow.com/1120471474277453834/Screenshot_2023-06-20-00-52-55-68.jpg)
![](https://cdn.answeroverflow.com/1120471474554290216/Screenshot_2023-06-20-00-52-46-02.jpg)
you mostly are trying to run .ts files
you must compile them into js
the files names are "index.js" and "ping.js"
as the guide said
mmm
package.json has type module?
yes
![](https://cdn.answeroverflow.com/1120608466025844776/Screenshot_2023-06-20-09-57-49-68.jpg)
wait wait
show me the entire package.json
![](https://cdn.answeroverflow.com/1120608645026164766/Screenshot_2023-06-20-09-58-34-68.jpg)
lolololol
you have the type option as a dependency
place it below "main"
the sapphire framework?
ohhh
huh?
the type
mb
yes