Closed Cryopt closed 1 year ago
Hi,
I just started getting familiar with this library and this thread helped me out.
Specifically, add "type":"module"
to your package.json
file and then you should be able to get going like this:
import Discojs from 'Discojs';
const client = new Discojs.Discojs({
//options
})
Hope this helps 🙂
Hey, When I use import in my file an error shows up
cannot use import statement outside a module
. I made some researches and I still don't really understand why I have this error. Can I use this without using import ? Thanks