Cant apply patch

When I try and upgrade to v2.18.1 I get the following errors

error: jslib/src/angular/components/register.component.ts: No such file or directory
error: patch failed: src/app/services/services.module.ts:135
error: src/app/services/services.module.ts: patch does not apply

this is on Ubuntu 20.04 building from source using the following code.

git clone https://github.com/bitwarden/web.git web-vault
cd web-vault
git checkout
gittagno=(git tag --sort=v:refname | tail -n1) wget https://raw.githubusercontent.com/dani-garcia/bw_web_builds/master/patches/{gittagno}.patch
git apply ${gittagno}.patch

which isnt displaying properly or showing the $ properly but command is correct (I think)