#error: Cannot use import statement with CommonJS-only features
1 messages · Page 1 of 1 (latest)
can you show your file, like do you have module.exports?
yeah its just a basic slash command
yeah thats the issue
use export default
(module.exports is commonjs and import is esm... therefore)
What error?
read title
ah brilliant thank you
i wonder, is bun nice and shows you the commonjs features in "error" or does it just die on file
-# btw, may i suggest using a discord library built for bun/with bun in mind?
im so used to these forums that i read it all so fast (ie click and read it all in one go and see key points) and didnt even consider so much lol
yeah I just realised it says module was used