Youssef
Youssef
Explore posts from servers
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
No description
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
oh cool thanks
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
oh haha don't worry, i just hate setting up thing about tsconfig
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
not beginner, but i hate those things about cjs and esm
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
what do you use?
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
nah i did what they did, just asking in general
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
No description
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
although can i ask you
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
ok i read that
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
alright
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
change the type in package.json to module?
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
so what should i do?
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
what module should i use in the tsconfig?
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
No description
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
No description
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
Node: v18.16.1
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
{
"name": "kayla",
"main": "dist/index",
"scripts": {
"start": "tsc && node .",
"lint": "npx eslint src/* --fix",
"format": "prettier --write .",
"clean": "rimraf dist/"
},
"dependencies": {
"@sapphire/framework": "^5.2.1",
"discord.js": "^14.15.2",
},
"devDependencies": {
"typescript": "^5.5.2"
},
"_moduleAliases": {
"@services": "dist/services"
}
}
{
"name": "kayla",
"main": "dist/index",
"scripts": {
"start": "tsc && node .",
"lint": "npx eslint src/* --fix",
"format": "prettier --write .",
"clean": "rimraf dist/"
},
"dependencies": {
"@sapphire/framework": "^5.2.1",
"discord.js": "^14.15.2",
},
"devDependencies": {
"typescript": "^5.5.2"
},
"_moduleAliases": {
"@services": "dist/services"
}
}
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
package.json
32 replies
SIASapphire - Imagine a framework
Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
my tsconfig
{
"compilerOptions": {
"target": "es2022",
"module": "commonjs",
"rootDir": "./src",
"baseUrl": "./src",
"paths": {
"@services/*": ["services/*"],
},
"outDir": "./dist",
"removeComments": true,
"esModuleInterop": true ,
"forceConsistentCasingInFileNames": true,
"strict": true ,
"alwaysStrict": true ,
"noUncheckedIndexedAccess": false ,
"skipLibCheck": true,
"noImplicitAny": false,
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
{
"compilerOptions": {
"target": "es2022",
"module": "commonjs",
"rootDir": "./src",
"baseUrl": "./src",
"paths": {
"@services/*": ["services/*"],
},
"outDir": "./dist",
"removeComments": true,
"esModuleInterop": true ,
"forceConsistentCasingInFileNames": true,
"strict": true ,
"alwaysStrict": true ,
"noUncheckedIndexedAccess": false ,
"skipLibCheck": true,
"noImplicitAny": false,
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
32 replies
DIAdiscord.js - Imagine an app
Created by djwilli on 6/19/2024 in #djs-questions
'å', 'ä', 'ö' all turn into (check post) when in a message
ok don't ping me
20 replies