-
Notifications
You must be signed in to change notification settings - Fork 51
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load/render Angular 11 Version app in Webview2 #2035
Comments
Just FYI.... Not sure about your error - but I have several Angular 11 (and now 13) apps that run in a WebView locally and it works with no issues. |
@RickStrahl Thank you for your response. Okay cool. With further investigation, we found that importing core-js in polyfills.ts caused this error in my app. We imported core-js due to dependencies in my app. Appreciate it if you share more details about how we can run an angular app locally in Webview. The angular app and Webview run on the same machine. This really helps me to debug further and triage the issue. |
Frankly I'm not doing antything special - I just run the app as I normally would and it works. It works both online or using a local Web Server (I'm using my LiveReloadServer typically, but the Angular Server should work too). How are you running the app? Accessing a remote server, or the local Angular:4200 server? Running from disk (that won't work)? |
In local using Angular:4200. I am just looking for how to load the local angular app in the Webview2 application. |
@RickStrahl could you please tell me whether the generated index.html from Angular contains <script type="text/javacript"> or <script type="module"> ? We have an Angular 8 application and the generated index.html contains <script type="module">. With that it doesn't work in WebView2. But if we change index.html manually to have <script type="text/javacript">, then it works. What is going on? |
Any update on this? I am seeing this same error |
Digging into this a little deeper, I was able to point this WebView2 Sample at my app running on localhost and I noticed the following line. It freezes the |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi,
We are trying to access the angular web application in webview 2. It is a Webex app internally using webview 2 to render an angular application. The angular app loads successfully for the first time but or reload it ends up on a blank page and I see the following error in the console.
t.exports @ polyfills.3b53b434302d0d603af6.js:1
t.exports @ polyfills.3b53b434302d0d603af6.js:1
I+eb.t.exports @ polyfills.3b53b434302d0d603af6.js:1
zowp @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
nK6O @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
/r59 @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
499b @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
/d/1 @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
khwf @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
RDjF @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
r4fA @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
hN/g @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
5 @ polyfills.3b53b434302d0d603af6.js:1
f @ runtime.e59c6b7b8880cde1b6f9.js:1
r @ runtime.e59c6b7b8880cde1b6f9.js:1
a @ runtime.e59c6b7b8880cde1b6f9.js:1
(anonymous) @ polyfills.3b53b434302d0d603af6.js:1
Note: Same angular app works absolutely fine in all browsers including the latest version of Microsoft Edge.
We need immediate assistance on this issue as it is blocking one of the major releases.
Angular version: ^11.0.4
Typescript: 4.0.5
Windows 10
Microsoft Edge Webview2 Runtime: 96.0.1054.62
Please let me know if any other details are required.
The text was updated successfully, but these errors were encountered: