Property assignment expected.ts(1136)

When you receive the error message “property assignment expected.ts(1136)”, it means that TypeScript expected you to assign a value to a property but no assignment was found.

Here’s an example to help illustrate this error:

    
      let myObject = {};
      myObject.property = "value";
    
  

In this example, we are creating an empty object and then trying to assign a value to a property called “property”. However, TypeScript is expecting an assignment statement after defining the property, like this:

    
      let myObject = {
        property: "value"
      };
    
  

So, to fix the error, you should make sure to assign a value to the property immediately after defining it.

Leave a comment