<?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 syntax error in SceneView.js in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1687261#M88205</link>
    <description>&lt;P&gt;&lt;SPAN&gt;When I upgraded to ArcGIS API 5.0 (this commit: &lt;A href="https://github.com/GeoDaoyu/Chu/commit/4fad0cd6259b2bc442ef1f4d8f5b7bff6dae9be6" target="_blank"&gt;https://github.com/GeoDaoyu/Chu/commit/4fad0cd6259b2bc442ef1f4d8f5b7bff6dae9be6&lt;/A&gt;), a syntax error occurred in dev.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image-20260227163315996.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149057i9BC1A14349E21A55/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-20260227163315996.png" alt="image-20260227163315996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have identified that the syntax error occurred in the file `node_modules/@arcgis/core/views/SceneView.js`.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image-20260227163359202.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149058iCBEE25756446B45A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-20260227163359202.png" alt="image-20260227163359202.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I wrote a script to fix the grammar errors (this commit: &lt;A href="https://github.com/GeoDaoyu/Chu/commit/7141fd8159a05befa1aa9d377f1ce0f9c88b81d6" target="_blank"&gt;https://github.com/GeoDaoyu/Chu/commit/7141fd8159a05befa1aa9d377f1ce0f9c88b81d6&lt;/A&gt;). The function of this script is very simple, which is to format the code with prettier. Then dev worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I find this issue extremely strange. Why are there syntax error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Feb 2026 08:49:41 GMT</pubDate>
    <dc:creator>DaoYu</dc:creator>
    <dc:date>2026-02-27T08:49:41Z</dc:date>
    <item>
      <title>syntax error in SceneView.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1687261#M88205</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When I upgraded to ArcGIS API 5.0 (this commit: &lt;A href="https://github.com/GeoDaoyu/Chu/commit/4fad0cd6259b2bc442ef1f4d8f5b7bff6dae9be6" target="_blank"&gt;https://github.com/GeoDaoyu/Chu/commit/4fad0cd6259b2bc442ef1f4d8f5b7bff6dae9be6&lt;/A&gt;), a syntax error occurred in dev.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image-20260227163315996.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149057i9BC1A14349E21A55/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-20260227163315996.png" alt="image-20260227163315996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have identified that the syntax error occurred in the file `node_modules/@arcgis/core/views/SceneView.js`.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image-20260227163359202.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149058iCBEE25756446B45A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-20260227163359202.png" alt="image-20260227163359202.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I wrote a script to fix the grammar errors (this commit: &lt;A href="https://github.com/GeoDaoyu/Chu/commit/7141fd8159a05befa1aa9d377f1ce0f9c88b81d6" target="_blank"&gt;https://github.com/GeoDaoyu/Chu/commit/7141fd8159a05befa1aa9d377f1ce0f9c88b81d6&lt;/A&gt;). The function of this script is very simple, which is to format the code with prettier. Then dev worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I find this issue extremely strange. Why are there syntax error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 08:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1687261#M88205</guid>
      <dc:creator>DaoYu</dc:creator>
      <dc:date>2026-02-27T08:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in SceneView.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1687322#M88206</link>
      <description>&lt;P&gt;This might be related the webpack build. When looking at what is shipped in npm, the `,:` syntax is not there.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.npmjs.com/package/@arcgis/core?activeTab=code" target="_blank" rel="noopener"&gt;https://www.npmjs.com/package/@arcgis/core?activeTab=code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="core-5-npm.png" style="width: 890px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149082i2622F075E5747D90/image-size/large?v=v2&amp;amp;px=999" role="button" title="core-5-npm.png" alt="core-5-npm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 14:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1687322#M88206</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2026-02-27T14:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in SceneView.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1687555#M88210</link>
      <description>&lt;P&gt;Thanks for your&amp;nbsp; reply.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on your hint, I continued to debug chainWebpack and found that the error occurred in the compilation.moduleTemplates stage. However, I have no way to handle the Webpack issue. I can only temporarily bypass the error using the prettier method mentioned above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can leave the Webpack version: 5.88.2 here. If anyone else encounters this problem, it can be used as a reference.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2026 02:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1687555#M88210</guid>
      <dc:creator>DaoYu</dc:creator>
      <dc:date>2026-02-28T02:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in SceneView.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1690958#M88302</link>
      <description>&lt;P&gt;I wrote a project to reproduce this problem in &lt;A href="https://github.com/GeoDaoyu/arcgis-webpack" target="_blank"&gt;https://github.com/GeoDaoyu/arcgis-webpack&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 07:37:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/syntax-error-in-sceneview-js/m-p/1690958#M88302</guid>
      <dc:creator>DaoYu</dc:creator>
      <dc:date>2026-03-17T07:37:48Z</dc:date>
    </item>
  </channel>
</rss>

