Converted to es6 module, commands not loading

INFO - Logging in
INFO - logged in
INFO - ApplicationCommandRegistries: Initializing...
INFO - ApplicationCommandRegistries: Took 0ms to initialize.
INFO - Logging in
INFO - logged in
INFO - ApplicationCommandRegistries: Initializing...
INFO - ApplicationCommandRegistries: Took 0ms to initialize.
then it's frozen. type: "module" swcrc:
{
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true
},
"target": "es2020",
"paths": {
"#lib/*": ["./lib/*"]
},
"baseUrl": "./src"
},
"sourceMaps": true,

"module": {
"type": "es6"
}
}
{
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true
},
"target": "es2020",
"paths": {
"#lib/*": ["./lib/*"]
},
"baseUrl": "./src"
},
"sourceMaps": true,

"module": {
"type": "es6"
}
}
tsconfig
{
"extends": "@sapphire/ts-config",
"compilerOptions": {
"module": "node16",
"moduleResolution": "node16",
"importsNotUsedAsValues": "preserve",
"ignoreDeprecations": "5.0",
"rootDir": "src",
"outDir": "dist",
"baseUrl": "src",
"tsBuildInfoFile": "dist/.tsbuildinfo",
"lib": ["ES2022"],
"paths": {
"#lib/*": ["./lib/*"]
},
"strict": true,
// "types": ["vitest/importMeta"],

"resolveJsonModule": true,
"esModuleInterop": true,
"noUnusedLocals": false,
"preserveSymlinks": true,
"noUnusedParameters": false,
"typeRoots": ["./types", "./node_modules/@types"]
},
"include": ["src"],
"exclude": ["node_modules", "types", "dist", "reference"]
}
{
"extends": "@sapphire/ts-config",
"compilerOptions": {
"module": "node16",
"moduleResolution": "node16",
"importsNotUsedAsValues": "preserve",
"ignoreDeprecations": "5.0",
"rootDir": "src",
"outDir": "dist",
"baseUrl": "src",
"tsBuildInfoFile": "dist/.tsbuildinfo",
"lib": ["ES2022"],
"paths": {
"#lib/*": ["./lib/*"]
},
"strict": true,
// "types": ["vitest/importMeta"],

"resolveJsonModule": true,
"esModuleInterop": true,
"noUnusedLocals": false,
"preserveSymlinks": true,
"noUnusedParameters": false,
"typeRoots": ["./types", "./node_modules/@types"]
},
"include": ["src"],
"exclude": ["node_modules", "types", "dist", "reference"]
}
2 Replies
Favna
Favna2y ago
Validate your main property in package.json
chmod
chmodOP2y ago
thx legend
Want results from more Discord servers?
Add your server