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
Solved! Go to Solution.
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!
I also have this issue, that file seems to have some really long lines in it.
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!
Thanks for your solution. Now it is working.
Thanks
Jimmy