#Invalid shorthand property initializer

1 messages · Page 1 of 1 (latest)

modern pawn
#

Invalid shorthand property initializer

hollow tinsel
#

@modern pawn do I change all my = to :?

modern pawn
#

I will have to go through the code

#

That you provided

hollow tinsel
#
events.forEach((f, i) => {
        if (reload)
            delete require.cache[require.resolve(`../events/${f}`)]
        const events = require(`../events/${f}`)
        client.events.set(event.name, event)

        if (!reload)
            console.log(`${i + 1}. ${f} loaded`)
    })```
#

I think this would a place where I would change it

modern pawn
#

I believe so

hollow tinsel
#

Alright, if you could go through my code to check everywhere I need to place that would be helpful 🙂

modern pawn
#

Im not very good with javascript errors and finding them + my method of debugging is probably different to yours

#

@hollow tinsel Had your issue been resolved?

hollow tinsel