Thank you Sam! I recently migrated from a Dev to Alpha version of Jetpack Compose and this was one of the last snags. I also needed to add a manual import in order for Modifer.weight to work properly. For anyone out there in the future, in my case the error I got was
Expression 'weight' cannot be invoked as a function. The function 'invoke()' is not found