Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Line 1 error expected object #279

Open
capjay45 opened this issue Oct 16, 2020 · 2 comments
Open

Line 1 error expected object #279

capjay45 opened this issue Oct 16, 2020 · 2 comments

Comments

@capjay45
Copy link

Hi, I know pretty much nothing about js but I keep getting this issue and I dont know how to solve it
Script: C:/Users/myname/Desktopdiscordbot/bot.js
Line: 1
Char: 1
Error: Object expected
Code: numbers
Source: Microsoft JScript runtime error

@sarthaktexas
Copy link
Contributor

Looks like you're running this by clicking on it. Try running it by opening cmd.exe and typing cd Desktopdiscordbot && node bot.js.

@xBlanco
Copy link

xBlanco commented Oct 29, 2020

I had the same issue, and when I loaded by the cmd, it says me that:

SyntaxError: C:\Users\Usuario\Desktop\jesus-bot\auth.json: Unexpected token D in JSON at position 0
at parse ()
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1106:22)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\Users\Usuario\Desktop\jesus-bot\bot.js:3:12)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants