There should be a package.JSON file in the same folder as index.js. If there is, add "type": "module" to it. If there isn't, create one and put in { "type": "module" }. Or, you can change the file extension from .js to .mjs i think
I did the mjs thing and got a http error, I’ll have to show you Tomorrow though