I have installed the html2canvas in my angular library project and, when I compile in production mode (running the ng build --prod command), I'm receiving the following error:
ERROR: Dependency @types/html2canvas must be explicitly allowed using the "allowedNonPeerDependencies" option.
How can I solve it?