-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing moment locale file if not EN #74
Comments
I had the same problem with moment with pt-br locale and the dojox/widget/ColorPicker dependency. What solved for me was open the node_modules/esri-wab-build/app/_app.profile.js and include the 3 lines inside "dojo/dojo" layer section: //...
layers: {
"dojo/dojo": {
boot: true,
customBase: false,
include: [
"esri/jsapi",
"esri/layers/unitBezier",
"esri/SnappingManager",
"dojox/gfx/path",
"dojox/gfx/svg",
"dojox/gfx/filters",
"dojox/gfx/svgext",
"dojox/gfx/shape",
"esri/dijit/Attribution",
"esri/IdentityManager",
"dojox/xml/parser",
"xstyle/core/load-css",
"dgrid/TouchScroll",
"dgrid/util/touch",
"dgrid/util/has-css3",
"dojo/selector/lite",
//here
"dojox/widget/ColorPicker",
"moment/moment",
"moment/locale/pt-br"
]
},
//... In your case would be moment/locale/he. Then try to run esri-wab-build again. |
Works like a charm.. Let's hope it's the correct way to solve this. Notes: Tested with WAB 2.16 |
@cancastilho do you know if it was your class that was missing an include for dojox.widget.ColorPicker or one of the WAB classes? |
dojox.widget.ColorPicker is used, indirectly, by Draw widget, which I was using in my project. Hence, the error occurred to me. The dependency graph is as follows: |
Hi,
I created a vanilla app (just a basemap) with WAB Dev Edition 2.12
After built change env to load local and
https://wab.local/arcgis-js-api/moment/locale/he.js?wab_dv=2.12 is missing
also
/arcgis-js-api/dijit/_BidiMixin.js?wab_dv=2.12 is missing
It's happens also in WAB 2.8
The text was updated successfully, but these errors were encountered: