Does this sentence work?

Lana, the protagonist of the novel, struggles to reach her dream, but only to encounter a succession of dilemmas from the .

2 answers

No

Take out the middle and look:

Lana ..... only to encounter a succ....

Lana is subject of a missing verb

It should be
Lana ..... encounters a succ....
or skip the word "but"