I don't have any problems with Weighted Switch Controller and JMeter 5.4.2
The error you're getting means that there is no jmeter-plugins-cmn-jmeter in JMeter Classpath
I would recommend installing this plugin via JMeter Plugins Manager, this way it will download all dependencies and this problem will go away