# Receiving Unexpected Property on Scripts when line is empty

**URL:** <https://forum.8thwall.com/t/receiving-unexpected-property-on-scripts-when-line-is-empty/3574>\
**Category:** Technical Support\
**Tags:** general, studio\
**Created:** [November 13, 2024, 5:07pm UTC](https://forum.8thwall.com/t/receiving-unexpected-property-on-scripts-when-line-is-empty/3574 "2024-11-13T17:07:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Borg](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Kyle\_Borg](https://forum.8thwall.com/u/Kyle_Borg)\
**Post date:** [November 13, 2024, 5:07pm UTC](https://forum.8thwall.com/t/receiving-unexpected-property-on-scripts-when-line-is-empty/3574/1 "2024-11-13T17:07:38Z")

</div>

My scripts in Studio have been running fine, however, in the last day, I have started to get this error:  
A total of 2 errors  
(UIController.js):  
unexpected property  
1 more…[[Ln 2, Col 26]](https://www.8thwall.com/arshirtshop/santas-sleigh-mate/studio?module=undefined&file=UIController.js#L26C3)

There is no content on Line 2 of either Script. Here is the top of a script, for example.

Thanks for your help; I am stumped.

import \* as ecs from ‘[@8thwall](https://forum.8thwall.com/groups/8thwall)/ecs’ // Importing the ECS library

// Obstacle Controller Component  
// Handles control of obstacles for different levels and manages obstacle behavior as per the game state  
ecs.registerComponent({  
name: ‘obstacleController’,  
schema: {  
obstacleMoveSpeed: ecs.f32, // Obstacle Movement Speed as a float  
leftBound: ecs.f32, // Left boundary where obstacles leave the scene  
resetOffset: ecs.f32, // Offset to reposition obstacles to the right (for looping obstacles)  
currentLevel: ecs.i32, // Current active level for obstacle control  
},  
schemaDefaults: {  
obstacleMoveSpeed: 9,  
leftBound: -200, // Updated left boundary where obstacles leave the scene  
resetOffset: 64,  
currentLevel: 1, // Start at level 1  
},  
data: {  
gameActive: ecs.boolean, // Is the game currently active  
obstacleEntities: ecs.array(ecs.eid), // Array to keep track of obstacle entity IDs (use ECS array type)  
},

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [November 14, 2024, 5:09pm UTC](https://forum.8thwall.com/t/receiving-unexpected-property-on-scripts-when-line-is-empty/3574/2 "2024-11-14T17:09:09Z")

</div>

`ecs.array` doesn’t exist. You’ll have to keep track of the obstacles in an array above the component definition and then you can reference it that way.
