After installing the html2canvas package in my Angular library project, I encountered an error when compiling in production mode using the command ng build --prod
. The specific error message is as follows:
ERROR: Dependency @types/html2canvas must be explicitly allowed using the "allowedNonPeerDependencies" option.
What steps should I take to resolve this issue?