Select to view content in your preferred language

ArcGIS API 4.19 Dojo build failure

1107
3
Jump to solution
05-03-2021 06:43 PM
JimmyWang
Occasional Contributor

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
Honored 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
Regular Contributor

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

0 Kudos
ReneRubalcava
Honored 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
Occasional Contributor

Thanks for your solution. Now it is working. 

 

Thanks

Jimmy

0 Kudos