Wont eat?

I tried feeding my 10 month old jar food and she refuses she’ll gag and vomit and turn her head but when offered table food she’ll eat it no problem