ERROR: MethodError: no method matching *(::Array{Float32,2}, ::Array{Float32,4})

I receive the above error when running the following on Julia 1.4.0 and 1.4.1:

using Flux

x = rand(Float32, 2, 2, 256, 10)
Dense(256, 2)(x)