ArcGIS JavaScript API - Problem with custom build

3952
1
02-24-2015 06:43 AM
VincentDechandon
New Contributor

Hey guys.

I'm currently "exeperimenting" with custom build‌.

I've created a text file where I've listed all modules I need :

"dijit/TooltipDialog",

"dijit/popup",

"dojo/dom-style",

"esri/Color",

"esri/InfoTemplate",

"esri/SpatialReference",

"esri/geometry/Extent",

"esri/geometry/Point",

"esri/geometry/webMercatorUtils",

"esri/graphic",

"esri/layers/ArcGISDynamicMapServiceLayer",

"esri/layers/FeatureLayer",

"esri/layers/GraphicsLayer",

"esri/map",

"esri/renderers/HeatmapRenderer",

"esri/symbols/CartographicLineSymbol",

"esri/symbols/Font",

"esri/symbols/PictureMarkerSymbol",

"esri/symbols/SimpleFillSymbol",

"esri/symbols/SimpleLineSymbol",

"esri/symbols/SimpleMarkerSymbol",

"esri/symbols/TextSymbol",

"esri/tasks/QueryTask",

"esri/tasks/query",

"esri/toolbars/draw"

To create this list, I've just gone through the code and took out all require.

The build created seems fine.

But when trying to use it in a simple web page, it looks like the dojo/dojo.js (the errors are triggering from this file) is trying to load some files that do not exist :

dojo/main.js

dojox/gfx/svg.js

However, the build do not include these files.

I might be missing something, I'm not so familiar with AMD modules anyway.

What could be the problem ? From the build ? From my code where I missed stuff ?

Any ideas/tips .

Thanks.

Br,

Vincent

0 Kudos
1 Reply
JeffJacobson
Occasional Contributor III

I've never been able to get the custom build to work, either.

The modules...

  • dojo/main.js
  • dojox/gfx/svg.js

...are probably referenced by modules that you are referencing. (I wasn't clear if you knew that already and were just asking why the BUILDER didn't include them.)

You might try following the steps for uploading a zipped version of your app mentioned here: ArcGIS API for JavaScript Web Optimizer | Guide | ArcGIS API for JavaScript . (I have yet to try this method, so I can't tell you if it actually works.)

0 Kudos