"You can’t have war when you trade with each other."
Yes, you can. Russia invaded Ukraine while trading with it.
Actually, Russia kept paying pipeline transit fees while bombing Ukraine and Ukraine allowed gas to flow, as long as contract lasted.
Despite both using any spare funds, including profits from that, to attack each other.
Trading has not stopped many other wars. Though admittedly it often makes war less attractive and may have prevented some. But it could also caused some
Also EU sanctions on Russia were introduced because EU countries really do not war in Europe.