Spacer component not works

Hello,
Spacer component is not working.
It is bug?
Please help me

Please show your error

Don’t set it’s height and width to automatic set some value in percentage or in Pixels