Skip to content
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

Open
BDvirus opened this issue Dec 28, 2019 · 4 comments
Open

Missing moment locale file if not EN #74

BDvirus opened this issue Dec 28, 2019 · 4 comments

Comments

@BDvirus
Copy link

BDvirus commented Dec 28, 2019

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

image

@BDvirus BDvirus changed the title Missing moment locale file with HE locale Missing moment locale file if not EN Dec 28, 2019
@cancastilho
Copy link

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.
Let me know if there is another way to solve this.

@BDvirus
Copy link
Author

BDvirus commented May 15, 2020

Works like a charm..
Thanks @cancastilho

Let's hope it's the correct way to solve this.

Notes:
RTL languages like Hebrew, it's need to add also
dijit/_BidiMixin
To solve the first error above.

Tested with WAB 2.16

@rsjones
Copy link
Collaborator

rsjones commented May 15, 2020

@cancastilho do you know if it was your class that was missing an include for dojox.widget.ColorPicker or one of the WAB classes?

@cancastilho
Copy link

cancastilho commented May 15, 2020

@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:
Draw Widget.js -> jimu/dijit/SymbolChooser -> jimu/dijit/ColorPicker -> dojox/widget/ColorPicker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants