No judging

So my almost 5 month old was a pretty good sleeper before. Never had an issue with her sleeping in her crib until now. If she's in her crib shes up every hour or less. Wont nap in there won't sleep at night. Out of pure desperation i let her sleep with me and i napped on my bed with her yesterday...and she slept several hours in a row. Why suddenly would she hate the crib?? Ive tried letting her cry, i put her in there asleep, awake, & drowsy just to try all methods and i can't get more then 1 hour. Am i going to have to let her cry it out in the middle of the night? She seriously wakes EVERY SINGLE HOUR until i move her beside me. I don't really like cosleeping but I'm really desperate for sleep.