This question already has an answer here:

I have an e-Visa for Canada in a passport that was damaged. I applied for and received a new passport. Can I still use the approved visa for Canada, or do I have to apply for a new one?

marked as duplicate by Giorgio, Jim MacKenzie, Ali Awan, David Richerby, Thorsten S. Jul 27 '18 at 12:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.