<?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 Error in GraphicsView2D when upgrading angular CLI app from esri 4.15 to 4.16. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-graphicsview2d-when-upgrading-angular-cli/m-p/196233#M18167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an Angular CLI 9.1 application with esri api for js 4.15.&lt;/P&gt;&lt;P&gt;We are using @arcgis/webpack-plugin and @types/arcgis-js-api.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I branched this solution and tried to upgrade the new branch with esri api for js 4.16.&lt;/P&gt;&lt;P&gt;After reading "What's New", I removed all declared() wrapper function from my subClass declarations.&lt;/P&gt;&lt;P&gt;After working through other errors, I have finally been stopped cold with this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;core.js:4127 ERROR TypeError: this.requestUpdateCallback is not a function&lt;BR /&gt; at t.requestUpdate (GraphicsView2D.js:25)&lt;BR /&gt; at t.viewChange (GraphicsView2D.js:25)&lt;BR /&gt; at t.i.viewChange (GraphicsLayerView2D.js:25)&lt;BR /&gt; at e._updateLayerView (FrameTask.js:25)&lt;BR /&gt; at Array.forEach (&amp;lt;anonymous&amp;gt;)&lt;BR /&gt; at t.forEach (Collection.js:25)&lt;BR /&gt; at i.update (FrameTask.js:25)&lt;BR /&gt; at scheduling.js:25&lt;BR /&gt; at t.forEach (PooledArray.js:25)&lt;BR /&gt; at a (scheduling.js:25)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is with&amp;nbsp;&lt;SPAN&gt;@types/arcgis-js-api 4.16.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't get this error with&amp;nbsp;@types/arcgis-js-api 4.15.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my tsconfig.json:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;BR /&gt; "compileOnSave": false,&lt;BR /&gt; "compilerOptions": {&lt;BR /&gt; "baseUrl": "./",&lt;BR /&gt; "outDir": "./dist/out-tsc",&lt;BR /&gt; "sourceMap": true,&lt;BR /&gt; "strict": false,&lt;BR /&gt; "alwaysStrict": false,&lt;BR /&gt; "declaration": false,&lt;BR /&gt; "checkJs": false,&lt;BR /&gt; "downlevelIteration": true,&lt;BR /&gt; "experimentalDecorators": true,&lt;BR /&gt; "preserveConstEnums": true,&lt;BR /&gt; "module": "ESNext",&lt;BR /&gt; "importHelpers": true,&lt;BR /&gt; "allowSyntheticDefaultImports": true,&lt;BR /&gt; "noImplicitUseStrict": true,&lt;BR /&gt; "noImplicitAny": false,&lt;BR /&gt; "moduleResolution": "node",&lt;BR /&gt; "esModuleInterop": true,&lt;BR /&gt; "isolatedModules": false,&lt;BR /&gt; "target": "ES5",&lt;BR /&gt; "skipLibCheck": true,&lt;BR /&gt; "typeRoots": [&lt;BR /&gt; "node_modules/@types"&lt;BR /&gt; ],&lt;BR /&gt; "lib": [&lt;BR /&gt; "es2015.promise",&lt;BR /&gt; "es5",&lt;BR /&gt; "es6",&lt;BR /&gt; "dom"&lt;BR /&gt; ]&lt;BR /&gt; },&lt;BR /&gt; "angularCompilerOptions": {&lt;BR /&gt; "fullTemplateTypeCheck": true,&lt;BR /&gt; "strictInjectionParameters": true&lt;BR /&gt; }&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the most important part of angular.json:&lt;/P&gt;&lt;P&gt;&lt;EM&gt; "root": "./",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "sourceRoot": "angularCLIsrc",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "prefix": "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "architect": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "build": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "builder": "@angular-builders/custom-webpack:browser",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "options": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "customWebpackConfig": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "path": "./custom-build.js"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; },&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "rebaseRootRelativeCssUrls": true,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "outputPath": "dist/esri",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "index": "index.html",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "main": "angularCLIsrc/main.ts",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "polyfills": "angularCLIsrc/polyfills.ts",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "tsConfig": "tsconfig.app.json",&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2020 00:59:21 GMT</pubDate>
    <dc:creator>EugeneStaten</dc:creator>
    <dc:date>2020-08-07T00:59:21Z</dc:date>
    <item>
      <title>Error in GraphicsView2D when upgrading angular CLI app from esri 4.15 to 4.16.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-graphicsview2d-when-upgrading-angular-cli/m-p/196233#M18167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an Angular CLI 9.1 application with esri api for js 4.15.&lt;/P&gt;&lt;P&gt;We are using @arcgis/webpack-plugin and @types/arcgis-js-api.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I branched this solution and tried to upgrade the new branch with esri api for js 4.16.&lt;/P&gt;&lt;P&gt;After reading "What's New", I removed all declared() wrapper function from my subClass declarations.&lt;/P&gt;&lt;P&gt;After working through other errors, I have finally been stopped cold with this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;core.js:4127 ERROR TypeError: this.requestUpdateCallback is not a function&lt;BR /&gt; at t.requestUpdate (GraphicsView2D.js:25)&lt;BR /&gt; at t.viewChange (GraphicsView2D.js:25)&lt;BR /&gt; at t.i.viewChange (GraphicsLayerView2D.js:25)&lt;BR /&gt; at e._updateLayerView (FrameTask.js:25)&lt;BR /&gt; at Array.forEach (&amp;lt;anonymous&amp;gt;)&lt;BR /&gt; at t.forEach (Collection.js:25)&lt;BR /&gt; at i.update (FrameTask.js:25)&lt;BR /&gt; at scheduling.js:25&lt;BR /&gt; at t.forEach (PooledArray.js:25)&lt;BR /&gt; at a (scheduling.js:25)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is with&amp;nbsp;&lt;SPAN&gt;@types/arcgis-js-api 4.16.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't get this error with&amp;nbsp;@types/arcgis-js-api 4.15.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my tsconfig.json:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;BR /&gt; "compileOnSave": false,&lt;BR /&gt; "compilerOptions": {&lt;BR /&gt; "baseUrl": "./",&lt;BR /&gt; "outDir": "./dist/out-tsc",&lt;BR /&gt; "sourceMap": true,&lt;BR /&gt; "strict": false,&lt;BR /&gt; "alwaysStrict": false,&lt;BR /&gt; "declaration": false,&lt;BR /&gt; "checkJs": false,&lt;BR /&gt; "downlevelIteration": true,&lt;BR /&gt; "experimentalDecorators": true,&lt;BR /&gt; "preserveConstEnums": true,&lt;BR /&gt; "module": "ESNext",&lt;BR /&gt; "importHelpers": true,&lt;BR /&gt; "allowSyntheticDefaultImports": true,&lt;BR /&gt; "noImplicitUseStrict": true,&lt;BR /&gt; "noImplicitAny": false,&lt;BR /&gt; "moduleResolution": "node",&lt;BR /&gt; "esModuleInterop": true,&lt;BR /&gt; "isolatedModules": false,&lt;BR /&gt; "target": "ES5",&lt;BR /&gt; "skipLibCheck": true,&lt;BR /&gt; "typeRoots": [&lt;BR /&gt; "node_modules/@types"&lt;BR /&gt; ],&lt;BR /&gt; "lib": [&lt;BR /&gt; "es2015.promise",&lt;BR /&gt; "es5",&lt;BR /&gt; "es6",&lt;BR /&gt; "dom"&lt;BR /&gt; ]&lt;BR /&gt; },&lt;BR /&gt; "angularCompilerOptions": {&lt;BR /&gt; "fullTemplateTypeCheck": true,&lt;BR /&gt; "strictInjectionParameters": true&lt;BR /&gt; }&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the most important part of angular.json:&lt;/P&gt;&lt;P&gt;&lt;EM&gt; "root": "./",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "sourceRoot": "angularCLIsrc",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "prefix": "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "architect": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "build": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "builder": "@angular-builders/custom-webpack:browser",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "options": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "customWebpackConfig": {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "path": "./custom-build.js"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; },&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "rebaseRootRelativeCssUrls": true,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "outputPath": "dist/esri",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "index": "index.html",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "main": "angularCLIsrc/main.ts",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "polyfills": "angularCLIsrc/polyfills.ts",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "tsConfig": "tsconfig.app.json",&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 00:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-graphicsview2d-when-upgrading-angular-cli/m-p/196233#M18167</guid>
      <dc:creator>EugeneStaten</dc:creator>
      <dc:date>2020-08-07T00:59:21Z</dc:date>
    </item>
  </channel>
</rss>

