You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:16452) Warning: To load an ES module, set "type": "module" in the package.
json or use the .mjs extension.
(Use node --trace-warnings ... to show where the warning was created)
C:\Users\boss\Downloads\evobot-master\evobot-master\index.ts:1
import { Client, GatewayIntentBits } from "discord.js";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1176:20)
at Module._compile (node:internal/modules/cjs/loader:1218:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_ma
in:81:12)
at node:internal/main/run_main_module:23:47
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
(node:16452) Warning: To load an ES module, set "type": "module" in the package.
json or use the .mjs extension.
(Use
node --trace-warnings ...
to show where the warning was created)C:\Users\boss\Downloads\evobot-master\evobot-master\index.ts:1
import { Client, GatewayIntentBits } from "discord.js";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1176:20)
at Module._compile (node:internal/modules/cjs/loader:1218:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_ma
in:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.15.0
Beta Was this translation helpful? Give feedback.
All reactions