componentId

fun componentId(serialName: String): ComponentId

Gets the id of a component by its serial name. Throws an error if the component name does not exist.