Cannot Read Property 'name' of undefined Occurs when you have a variable in Javascript that you expect to contain an object and you try to reference a property of that object (name in this case) without checking if the variable is valid. It happens most often in Roll20 scripts when the author gets a Roll20 Object with findObjs() or getObj() but doesn't check the result before using it. let brokenObj = findObjs({type:'graphic', name: 'something that does not exist'});
log(brokenObj.name); If you can list the scripts you have, we can probably figure out which one has the problem. If you know what you're doing when it happens (moving a token, restarting the sandbox, making a roll in chat) that can help narrow it down.