geom_bar. the bars wont show up

Hi, am using the code below to create a barplot with facet grid. The facet grid shows up with everything labelled, but the bars are not showing up. What am I doing wrong?
ggplot(data, aes(x = var)) +
geom_bar()+
labs(title = "title", subtitle = "subtitle",
x = "xname", y = "yname") +
facet_grid(var1 ~ var2)

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: