ArcGIS API 4.19 Dojo build failure

952
3
Jump to solution
05-03-2021 06:43 PM
JimmyWang
New Contributor II

Hello:

I am working on ArcGIS API 4.19 Dojo build up. When I ran "npm run build", It was fail. I checked log file. I got a error following:

error(356) The optimizer threw an exception; the module probably contains syntax errors.
module identifier: E:\TJPort\grid\jsapi-resources\4.x\amd\dojo\dist\esri\views\2d\layers\FeatureLayerView2D.js; exception: (compile time:0.245s). OPTIMIZER FAILED: JavaException: java.lang.NullPointerException: NAME NaN 127 [length: 6] [source_file: FeatureLayerView2D.js.uncompressed.js]

Can you supply any idea to fixe this one ?

Thanks

Jimmy

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

Hi there!

 

Can you update the dojo-util to use our fork please.

  "devDependencies": {
    "dojo-util": "git+https://github.com/Esri/dojo-util.git#1.16.3-esri",
  },

We use an updated version of the closure compiler that will fix this issue for dojo builds.

 

Thanks!

View solution in original post

3 Replies
JethroLeevers
Occasional Contributor

I also have this issue, that file seems to have some really long lines in it.

0 Kudos
ReneRubalcava
Frequent Contributor

Hi there!

 

Can you update the dojo-util to use our fork please.

  "devDependencies": {
    "dojo-util": "git+https://github.com/Esri/dojo-util.git#1.16.3-esri",
  },

We use an updated version of the closure compiler that will fix this issue for dojo builds.

 

Thanks!

JimmyWang
New Contributor II

Thanks for your solution. Now it is working. 

 

Thanks

Jimmy

0 Kudos