A common result is that finitely generated modules over a PID $R$ are projective iff they are free.

Is the same true that an arbitrary projective module over a PID is free? I can't find this fact anywhere, so I suspect it is false, but I can't construct an example.

Does anyone have an example of a projective module over a PID which is not free? Thank you.