newo-2001 / MC-Modpack-Downloader

Script to download Minecraft modpacks without the need for the FTB app or Overwolf
MIT License
22 stars 4 forks source link

Unknown file extension ".ts" #4

Closed ray73864 closed 6 months ago

ray73864 commented 7 months ago

npm run modpacks.ch

mcmodpackdownloader@1.0.0 modpacks.ch ts-node-esm src/app.ts modpacks.ch

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/ray/MC-Modpack-Downloader/src/app.ts at new NodeError (node:internal/errors:405:5) at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:99:9) at defaultGetFormat (node:internal/modules/esm/get_format:142:36) at defaultLoad (node:internal/modules/esm/load:86:20) at nextLoad (node:internal/modules/esm/hooks:726:28) at load (/home/ray/MC-Modpack-Downloader/node_modules/ts-node/dist/child/child-loader.js:19:122) at nextLoad (node:internal/modules/esm/hooks:726:28) at Hooks.load (node:internal/modules/esm/hooks:370:26) at MessagePort.handleMessage (node:internal/modules/esm/worker:168:24) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:762:20) { code: 'ERR_UNKNOWN_FILE_EXTENSION' }

Running Node.js 20.3.1.

If I use Node 19.7.0 by doing 'nvm install 19.7.0' it runs just fine.

newo-2001 commented 7 months ago

Thanks for the report, I will see what I can do to support node 20.

newo-2001 commented 6 months ago

Fixed in aa2247017bb62487497fb5c8b7fb78f83ecabe75.