discordx-ts / discordx

🤖 Create a discord bot with TypeScript and Decorators!
https://discordx.js.org
Apache License 2.0
583 stars 50 forks source link

'npx create-discordx' errors out #1036

Closed azmi-plavaga closed 3 weeks ago

azmi-plavaga commented 3 weeks ago

'npx create-discordx' errors out with following:

# npx create-discordx
Need to install the following packages:
create-discordx@1.2.2
Ok to proceed? (y) y
file:///home/engine/.npm/_npx/ea4426d3876e4a40/node_modules/create-discordx/dist/index.js:251
import tar from "tar";
       ^^^
SyntaxError: The requested module 'tar' does not provide an export named 'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:214:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12)

Node.js v20.11.1

versions:

azmi-plavaga commented 3 weeks ago

works well with 1.2.1.

Looks like this should have been filed under discordx-ts/discordx repo

samarmeena commented 3 weeks ago

yeah, dep update and builds without error cause this kind of issue. This should be picked by build. Not sure, why they don't do it.

samarmeena commented 3 weeks ago

@azmi-plavaga The issue should be resolved now. Thank you for bringing it to my attention.