Which is correct? I think the second one is correct.

1. Thank you John, Peter, Susan, and Veronica to be a part of the crew.

OR

2. Thank you John, Peter, Susan, and Veronica for being a part of the crew.

2 answers

If you put commas after "you" and "Veronica", the second one will be correct.

The first one is definitely incorrect!
What about commas?

Thank you, John, Peter, Susan and Veronica, for being a part of the crew.