To run any WebView2 based applications pre-requisite is to have WebView2 Runtime available on the host machine.
There are two possibilities of running a WebView2 based application

So for your question
Do you have please any clue where can be a problem, why on PC1 is not
WebView2 working? (PC1 is used for programming, PC2 no).
There could be a possibility that Evergreen WebView2 Runtime would already be present on host system (Where app runs).
Also related to availability of Evergreen WebView2 runtime -
In June 2022, Microsoft announced that it would make the WebView2
runtime available to all Windows 10 devices running at least April
2018 updates.
So if you have Windows 10 with 2018 updates or Windows 11 you would be having evergreen WebView2 runtime present.
Advice:
To be sure that your application runs on systems not having Evergreen WebView2 runtime already installed
- supply fixed runtime along with your applications as extra payload.
- Use webview2 installer during the application start after checking WebView2 runtime availability ( would require elevated privileges )