I know the issue but not how to fix it

File name 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/Schemas/Errors.js' differs from already included file name 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/schemas/Errors.js' only in casing.
The file is in the program because:
Imported via "./schemas/Errors" from file 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/utils.js'
Imported via "./schemas/Errors" from file 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/utils.js'
Imported via "../../Schemas/Errors" from file 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/commands/Developer/errors.js'
Imported via "../../Schemas/Errors" from file 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/commands/Developer/error.js'
File name 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/Schemas/Errors.js' differs from already included file name 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/schemas/Errors.js' only in casing.
The file is in the program because:
Imported via "./schemas/Errors" from file 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/utils.js'
Imported via "./schemas/Errors" from file 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/utils.js'
Imported via "../../Schemas/Errors" from file 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/commands/Developer/errors.js'
Imported via "../../Schemas/Errors" from file 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/commands/Developer/error.js'
Basically I have a util thing which handles command errors, this.container.util.handleError(message, error);, but since i'm on purpose getting a command to error to test the handling it thinks like i'm re defining it or something, don't know how to explain it, idk if this has to do with anything but i'm using the Sapphire Framework
4 Replies
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
-Carlos👑
-Carlos👑OP17mo ago
vsc highligthing this in the command: const db = require("../../Schemas/Errors"); util:
async function handleError(message, error) {
const db = require("./schemas/Errors");
rest of the code
}
async function handleError(message, error) {
const db = require("./schemas/Errors");
rest of the code
}
chewie
chewie17mo ago
Make them the what the actual file structure is You import one from the path schemas/Errors and one from Schemas/Errors
-Carlos👑
-Carlos👑OP17mo ago
ohh yeah that's was it ty
Want results from more Discord servers?
Add your server