I removed the spread operator wherever it appeared in the code.
Notes
I am not sure what to input for the fields projectLead and projectManager on lines 155 and 156 respectively. I did workPackage.wbsElement.projectLead and workPackage.wbsElement.projectManager (which should work because the WbsElement interface had all of these fields). However, the error message stated that the wbsElement did not have any of these fields.
I still need to test my code, but it would be great if someone could take a look at all the places where I removed the spread operator to see if I did it correctly!
Changes
I removed the spread operator wherever it appeared in the code.
Notes
I am not sure what to input for the fields projectLead and projectManager on lines 155 and 156 respectively. I did workPackage.wbsElement.projectLead and workPackage.wbsElement.projectManager (which should work because the WbsElement interface had all of these fields). However, the error message stated that the wbsElement did not have any of these fields.
I still need to test my code, but it would be great if someone could take a look at all the places where I removed the spread operator to see if I did it correctly!