LengoLabs / qbot

Qbot is an advanced, easy to setup, free, and unbranded Discord-Roblox ranking bot. If at any time during setting it up you need assistance, you can join the support server.
https://discord.gg/J47m7t4
MIT License
77 stars 138 forks source link

SyntaxError: Cannot use import statement outside a module #133

Closed ryanpfister closed 2 years ago

ryanpfister commented 2 years ago

Getting an error when running ### node .###

`C:\Users\Ryan\Doccuments\qbot-7.3.0>node . C:\Users\Ryan\Documents\qbot-7.3.0\src\main.ts:1 import { QbotClient } from './structures/QbotClient'; ^^^^^^

SyntaxError: Cannot use import statement outside a module ←[90m at Object.compileFunction (node:vm:352:18)←[39m ←[90m at wrapSafe (node:internal/modules/cjs/loader:1032:15)←[39m ←[90m at Module._compile (node:internal/modules/cjs/loader:1067:27)←[39m ←[90m at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)←[39m ←[90m at Module.load (node:internal/modules/cjs/loader:981:32)←[39m ←[90m at Function.Module._load (node:internal/modules/cjs/loader:822:12)←[39m ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)←[39m ←[90m at node:internal/main/run_main_module:17:47←[39m`

Node version 16.14.0.