<?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: TypeScript compile errors in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079382#M73897</link>
    <description>&lt;P&gt;So that knocked out all but two errors. Still getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;node_modules/@types/estree/index"' has no exported member named 'ChainExpression'. Did you mean 'ThisExpression'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;/node_modules/@types/estree/index"' has no exported member 'ImportExpression'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;removing node_modules and package-lock.json and running npm install again seems to have fixed this. Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 19:21:37 GMT</pubDate>
    <dc:creator>BenRomlein</dc:creator>
    <dc:date>2021-07-15T19:21:37Z</dc:date>
    <item>
      <title>TypeScript compile errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079349#M73893</link>
      <description>&lt;P&gt;I have a basic index.ts file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import ArcGISMap from '@arcgis/core/Map';
import MapView from '@arcgis/core/views/MapView';
import Search from '@arcgis/core/widgets/Search';

const map = new ArcGISMap({
	basemap: 'topo-vector'
});

const view = new MapView({
	container: 'viewDiv',
	map: map,
	zoom: 10,
	center: [118, 34]
});

const search = new Search({
	view
});

view.ui.add(search, 'top-right');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and tsconfig copied from &lt;A href="https://developers.arcgis.com/javascript/latest/typescript-setup/#tsconfig" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;When I do npx tsc I get several errors:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;node_modules/@arcgis/core/interfaces.d.ts:1:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: (Then a huge list)&lt;/P&gt;&lt;P&gt;node_modules/@types/arcgis-js-api/index.d.ts:8:1&lt;BR /&gt;8 type HashMap&amp;lt;T&amp;gt; = Record&amp;lt;string, T&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Conflicts are in this file.&lt;/P&gt;&lt;P&gt;node_modules/@arcgis/core/interfaces.d.ts:31568:5 - error TS2687: All declarations of 'address' must have identical modifiers.&lt;/P&gt;&lt;P&gt;node_modules/@types/eslint/index.d.ts:451:42 - error TS2724: '"C:/Users/bromlein/Documents/snowpack-demo/node_modules/@types/estree/index"' has no exported member named 'ChainExpression'. Did you mean 'ThisExpression'?&lt;/P&gt;&lt;P&gt;451 ChainExpression?: ((node: ESTree.ChainExpression &amp;amp; NodeParentExtension) =&amp;gt; void) | undefined;&lt;/P&gt;&lt;P&gt;node_modules/@types/eslint/index.d.ts:474:43 - error TS2694: Namespace '"C:/Users/bromlein/Documents/snowpack-demo/node_modules/@types/estree/index"' has no exported member 'ImportExpression'.&lt;/P&gt;&lt;P&gt;474 ImportExpression?: ((node: ESTree.ImportExpression &amp;amp; NodeParentExtension) =&amp;gt; void) | undefined;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;package.json:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "name": "snowpack-demo",
  "version": "1.0.0",
  "description": "",
  "main": "./src/index.js",
  "scripts": {
    "start": "snowpack dev",
    "build": "snowpack build",
    "test": "echo \"Error: no test specified\" &amp;amp;&amp;amp; exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@snowpack/plugin-typescript": "^1.2.1",
    "@snowpack/plugin-webpack": "^3.0.0",
    "@types/arcgis-js-api": "^4.20.1",
    "snowpack": "^3.8.2",
    "tslib": "^2.3.0",
    "typescript": "^4.3.5"
  },
  "dependencies": {
    "@arcgis/core": "^4.20.2"
  },
  "browser": {
    "fs": false,
    "path": false
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what am I missing?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 17:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079349#M73893</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2021-07-15T17:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: TypeScript compile errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079373#M73895</link>
      <description>&lt;P&gt;Uninstall the types/arcgis-js-api. The ESM package comes with typings already.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 18:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079373#M73895</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-07-15T18:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: TypeScript compile errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079382#M73897</link>
      <description>&lt;P&gt;So that knocked out all but two errors. Still getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;node_modules/@types/estree/index"' has no exported member named 'ChainExpression'. Did you mean 'ThisExpression'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;/node_modules/@types/estree/index"' has no exported member 'ImportExpression'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;removing node_modules and package-lock.json and running npm install again seems to have fixed this. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 19:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079382#M73897</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2021-07-15T19:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: TypeScript compile errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079401#M73898</link>
      <description>&lt;P&gt;I'm not sure exactly what your set up looks like, but I was able to put together a snowpack TS sample with the API without errors here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/snowpack-jsapi/tree/ts" target="_blank"&gt;https://github.com/odoe/snowpack-jsapi/tree/ts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm kind of surprised it worked, as there is an existing issue with snowpack here&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/snowpackjs/snowpack/issues/3322" target="_blank"&gt;https://github.com/snowpackjs/snowpack/issues/3322&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like that might be fixed now.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 19:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079401#M73898</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-07-15T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: TypeScript compile errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079418#M73900</link>
      <description>&lt;P&gt;Nice. Works perfectly. Now I just need to dive in and figure out why the one I set up won't run snowpack dev.&lt;BR /&gt;&lt;BR /&gt;I was pleasantly surprised snowpack build worked out of the box, too.&lt;/P&gt;&lt;P&gt;EDIT: After removing assets from the mount param from module.exports in snowpack.config.js, everything works now.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-compile-errors/m-p/1079418#M73900</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2021-07-16T15:50:44Z</dc:date>
    </item>
  </channel>
</rss>

