Questions & Answers about Je rêve de vivre près de l'océan.
In French, the verb rêver needs the preposition de when it is followed by another verb in the infinitive.
- rêver de + infinitive = to dream of doing something
Saying je rêve vivre is ungrammatical in French. The de cannot be dropped.
Both exist but they’re used differently:
rêver de + infinitive / noun = to dream of, to long for
rêver à + noun = to think dreamily about, to daydream about
- Je rêve à mon avenir. (I daydream/think about my future.)
So in your sentence (a wish about an action), only rêver de vivre is correct.