<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: getting WebGL errors when running Angular 11 app in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1052000#M72771</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/99530"&gt;@FentonCheng_-_DIT&lt;/a&gt;&amp;nbsp; I'm not sure without seeing the code. Can you provide a github repo with a very simple reproducible case based on the j&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli" target="_self"&gt;sapi-resources Angular sample&lt;/A&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we know that jsapi-resources sample works, it's a good starting point to add your code to it and find out what's breaking.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 22:08:23 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2021-04-27T22:08:23Z</dc:date>
    <item>
      <title>getting WebGL errors when running Angular 11 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1051993#M72770</link>
      <description>&lt;P&gt;I'm using the following:&lt;/P&gt;&lt;P&gt;Angular 11.2.11&lt;/P&gt;&lt;P&gt;ES modules 4.19.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get a sample working of our map component library (originally done in Angular 9 and using esri-loader). For now, I have the code from the&amp;nbsp;Intro to MapView - Create a 2D map sample hardcoded into the library.&amp;nbsp; When I run the app locally (built library and ng serve), I get an automatic scroll of the map. The console also shows WebGL errors. Any ideas what's causing this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FentonCheng_-_DIT_0-1619559273198.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12000iC8F9632CC8B4FFE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FentonCheng_-_DIT_0-1619559273198.png" alt="FentonCheng_-_DIT_0-1619559273198.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the Angular sample from the Esrt reources github and that runs correctly on its own.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 21:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1051993#M72770</guid>
      <dc:creator>FentonCheng_-_DIT</dc:creator>
      <dc:date>2021-04-27T21:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: getting WebGL errors when running Angular 11 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1052000#M72771</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/99530"&gt;@FentonCheng_-_DIT&lt;/a&gt;&amp;nbsp; I'm not sure without seeing the code. Can you provide a github repo with a very simple reproducible case based on the j&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli" target="_self"&gt;sapi-resources Angular sample&lt;/A&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we know that jsapi-resources sample works, it's a good starting point to add your code to it and find out what's breaking.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 22:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1052000#M72771</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-27T22:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: getting WebGL errors when running Angular 11 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1052043#M72773</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;This is where it gets interesting: I copied the map and view into the jsapi-resources sample and it worked. I tried it again in my library/test app and got the same issue (autoscrolling and WebGL errors in console).&lt;/P&gt;&lt;P&gt;Code of the library and test app is zipped and attached; we have internal repos for our code.&lt;/P&gt;&lt;P&gt;Run 'npm install', then 'ng serve mycityapp'&lt;/P&gt;&lt;P&gt;There are more instructions in the readme at cssample\projects\cchnlmap, but this should be enough to reproduce the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 00:10:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1052043#M72773</guid>
      <dc:creator>FentonCheng_-_DIT</dc:creator>
      <dc:date>2021-04-28T00:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: getting WebGL errors when running Angular 11 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1052511#M72798</link>
      <description>&lt;P&gt;I took a quick look at the project and was at least able to get it to build.&amp;nbsp; I mainly saw CSS issues.&lt;/P&gt;&lt;P&gt;1. You'll need to remove the import main.css from cchnlmap.components.ts.&lt;/P&gt;&lt;P&gt;2. And, at the top of app.component.css add:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;@import 'https://js.arcgis.com/4.19/@arcgis/core/assets/esri/themes/light/main.css';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;3.&amp;nbsp; Add "moment" to&amp;nbsp;allowedCommonJsDependencies in angular.json:&amp;nbsp;&lt;A href="https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-angular-cli/angular.json#L22" target="_blank" rel="noopener"&gt;https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-angular-cli/angular.json#L22&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Now app will build without warnings and errors. You still won't see the map, but it's there in the DOM. It's just not getting a height or width setting. I tried forcing it a couple different ways. You'll need to figure out how to pass the styles to the cchnlmap.component template. Here's the CSS that need to be set on the map DIV:&amp;nbsp;&lt;A href="https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-angular-cli/src/app/app.component.css#L2-L13" target="_blank" rel="noopener"&gt;https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-angular-cli/src/app/app.component.css#L2-L13&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that gets you a bit closer to figuring this out.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 21:46:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1052511#M72798</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-28T21:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: getting WebGL errors when running Angular 11 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1055377#M72968</link>
      <description>&lt;P&gt;After trying on my end, we might go back to esri loader for the rewrite for now. I tried forcing the height and width within angular and it was completely ignored; even changing it on the fly from the dev tools didn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 18:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1055377#M72968</guid>
      <dc:creator>FentonCheng_-_DIT</dc:creator>
      <dc:date>2021-05-06T18:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: getting WebGL errors when running Angular 11 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1088359#M74267</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;I am encountering this same issue.&amp;nbsp; Was there ever a solution?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 12:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1088359#M74267</guid>
      <dc:creator>YingWang</dc:creator>
      <dc:date>2021-08-12T12:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: getting WebGL errors when running Angular 11 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1088523#M74270</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/436412"&gt;@YingWang&lt;/a&gt;&amp;nbsp;I recommend comparing your app to the sample app here:&amp;nbsp;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli&lt;/A&gt;. Also make sure you are following the recommendations outlined in the README.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 16:40:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-webgl-errors-when-running-angular-11-app/m-p/1088523#M74270</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-08-12T16:40:59Z</dc:date>
    </item>
  </channel>
</rss>

