the game closes completely when I save & quit with a line in the scripts
if i have this line "const addEnch = new EnchantmentType(`${message}`);" in my script
after the script is executed, the "save & quit" button closes the game completely.
I uploaded a video of when it happens, and the js file I'm using, the npc only has the scriptevent command