Lahn ᓚᘏᗢ
Lahn ᓚᘏᗢ
DIAdiscord.js - Imagine an app
Created by Lahn ᓚᘏᗢ on 2/22/2024 in #djs-questions
Setting Client commands in ES Module
tysm!
6 replies
DIAdiscord.js - Imagine an app
Created by Lahn ᓚᘏᗢ on 2/22/2024 in #djs-questions
Setting Client commands in ES Module
I changed it to import { codeblock } from "../../utils/utilities.js"; but still getting same error.
6 replies
DIAdiscord.js - Imagine an app
Created by Lahn ᓚᘏᗢ on 2/22/2024 in #djs-questions
Setting Client commands in ES Module
TypeError [ERR_INVALID_MODULE_SPECIFIER]: Invalid module "commands\utility\convert.js" is not a valid package name imported from S:\NBV2\index.js
at new NodeError (node:internal/errors:405:5)
at parsePackageName (node:internal/modules/esm/resolve:818:11)
at packageResolve (node:internal/modules/esm/resolve:841:5)
at moduleResolve (node:internal/modules/esm/resolve:939:20)
at defaultResolve (node:internal/modules/esm/resolve:1132:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ESMLoader.import (node:internal/modules/esm/loader:524:22)
at importModuleDynamically (node:internal/modules/esm/translators:110:35) {
code: 'ERR_INVALID_MODULE_SPECIFIER'
}
TypeError [ERR_INVALID_MODULE_SPECIFIER]: Invalid module "commands\utility\convert.js" is not a valid package name imported from S:\NBV2\index.js
at new NodeError (node:internal/errors:405:5)
at parsePackageName (node:internal/modules/esm/resolve:818:11)
at packageResolve (node:internal/modules/esm/resolve:841:5)
at moduleResolve (node:internal/modules/esm/resolve:939:20)
at defaultResolve (node:internal/modules/esm/resolve:1132:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ESMLoader.import (node:internal/modules/esm/loader:524:22)
at importModuleDynamically (node:internal/modules/esm/translators:110:35) {
code: 'ERR_INVALID_MODULE_SPECIFIER'
}
6 replies