StiliyanKushev / csgo-tradeup-cli

A Command Line Tool for generating profitable CSGO trade-ups using the genetic algorithm.
25 stars 2 forks source link

node ESM imports Error #18

Closed ellysus closed 9 months ago

ellysus commented 11 months ago

After getting the database updater to work (there was an issue causing the app to crash due to the Anubis collection page containing a redirect), I'm trying to run the project with the following args:

node index --profit 110 --onlyCases --sources 2 --avf --populs 10 --visualize

I run into the following error:

node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node 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:405:5)
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:136:11)
    at defaultLoad (node:internal/modules/esm/load:87:3)
    at nextLoad (node:internal/modules/esm/loader:163:28)
    at ESMLoader.load (node:internal/modules/esm/loader:603:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
    at new ModuleJob (node:internal/modules/esm/module_job:64:26)
    at #createModuleJob (node:internal/modules/esm/loader:480:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

This is implying that there's an issue with the URL scheme used for the ESM imports; I'm trying to find issues in the imports but i'm not having any luck.

Any help would be appreciated.

TomiLikesToCode commented 11 months ago

I think it has to do with the windows filesystem, try virtual machine

StiliyanKushev commented 9 months ago

Should be fixed in latest change.