422 Unprocessable Content loading Custom UI in macro module

Seems that your script src path is absolute (begins with /), but should be relative. Docs state that is should be relative.

I was just fixing similar path-related error (although different status code). See Deploying an Angular application with Forge - #5 by JakubKazimierczak on how I’ve resolved it, might work in your case too.

Best
Kuba