I really enjoy your Discord Bot videos. Very well made, even the old videos ^^ keep up the great work. Stoked to see more of those complicated stuff you mentioned :D
I have created a discord bot so looong ago, great to have this video, reminding me of quarantine (when I got stuck in tutorial hell, creating a discord bot, but now I know JS)
hey, im getting this error: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' at new NodeError (node:internal/errors:388:5) at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1076:11) at defaultResolve (node:internal/modules/esm/resolve:1156:3) at ESMLoader.resolve (node:internal/modules/esm/loader:605:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:318:18) at ESMLoader.import (node:internal/modules/esm/loader:404:22) at importModuleDynamically (node:internal/modules/esm/translators:106:35) at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14) at file:///C:/Users/Asus/cord%20bots/hb%20ng/classes/Bot.js:28:66 at Array.forEach () { code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME' } and I saw your reply with the github comment to other comments on this video, but i dont understand what im supposed to do with it.
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' Bot.js:28:66 Is this a windows/mac problem? How to fix?
I’ve looked into it, I think it is a windows issue. Solution is to add something like this github.com/okonet/lint-staged/issues/1054#issuecomment-974852428
@@ezz4267 Yes and this whole import scheme - I don't think this is considered best practices. And this method of getting the file names, since it only works on mac, should also be retired.
i have node.js 18 installed getting this error node:internal/errors:466 ErrorCaptureStackTrace(err); ^ Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file