Type Error isDevTools Open is not a function

Hi, I'm using the following scripts in this order:
1) HIME_PreEmptiveBattleEvents
2) TerraxLighting
3) YEP_CoreEngine
4) YEP_EventChasePlayer
5) YEP_X_EventChaseStealth

And I get the following error when I try and run the game.
Spoiler: Screenshot of Error Message
Screenshot 2018-11-10 12.13.39.png

I have an event with the following content
page 1
Spoiler: page 1 of event
◆If:Script:$gamePlayer.isStealthMode()
◆Control Variables:#0001 Pre-Emptive = 1
◆Control Variables:#0002 Surprise = 0
◆Battle Processing:Drone
:If Win
◆Change EXP:Entire Party, + {Stealth EXP} (Show Level Up)
◆Erase Event
◆
:If Escape
◆Control Self Switch:A = ON
◆
:End
◆
:Else
◆Control Variables:#0001 Pre-Emptive = 0
◆Control Variables:#0002 Surprise = 1
◆Battle Processing:Drone*3
:If Win
◆Erase Event
◆
:If Escape
◆Control Self Switch:A = ON
◆
:End
◆
:End
page 2
Spoiler: page 2 of event
◆Show Balloon Icon:This Event, Question (Wait)
◆Wait:60 frames
◆Show Balloon Icon:This Event, Silence (Wait)
◆Wait:60 frames
◆Control Self Switch:A = OFF

Incase you can't read the screenshot the error says:
TypeError:
require(,,,).Window.get(...).isDevTools Open is not a function

When I remove YEP_CoreEngine it gives me another error

ReferenceError:
x is not defined

Edit:
I forgot to set a number for x in
this._chaseRange = x

That solved the reference error

Then updating the plugins to the latest version made it work.

Original thread: https://forums.rpgmakerweb.com/threads/type-error-isdevtools-open-is-not-a-function.101985/