val x = Vec.fill(140){UInt(1, width=6)}
io.myoutput := x.toBits
The "toBits" method is what you want. It flattens a Vec into its raw bits.
I'm not sure exactly what is causing the error message, but in general, you can't really reassign to specific bits in a wire in Chisel.
val y = Bits(0,width=32)
y(1) := UInt(0)
y(3) := UInt(3)
etc.
That will throw an error.